Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / error1.C
blob751b3b75e0cb320123a15988bfc1438dbf9edca4
1 // PR c++/34395
2 // { dg-do compile }
3 // { dg-options "-std=c++0x" }
5 template<int... N> void foo (int... x[N])       // { dg-error "int \\\[N\\\]\\.\\.\\. x" }
7   struct A
8   {
9     A () { x; }         // { dg-error "use of parameter from containing function" }
10   };