* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr71450-1.C
blob1c686295766ad87af949b8933edc2f2b49d14758
1 // PR c++/71450
2 // { dg-do compile { target c++11 } }
4 struct A { A operator+ (A a) { return a; } };
6 template <class T>
7 void foo (T t)
8
9   auto x = t + x;       // { dg-error "use of 'x' before deduction of 'auto'" }
12 int
13 main ()
14
15   foo (A ());