Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr71450-2.C

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 }