☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr71450-2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr71450-2.C
code
plain
raw
1
// PR c++/71450
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
void foo (T t)
6
{
7
auto x = t + x; // { dg-error "use of 'x' before deduction of 'auto'" }
8
}
9
10
int
11
main ()
12
{
13
foo (1);
14
}