1 // PR c++/71450
2 // { dg-do compile { target c++11 } }
3 
4 template <class T>
foo(T 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
main()11 main ()
12 {
13   foo (1);
14 }
15