* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic78.C
blob0a42435c6acd486ec416979dc43ed4f8cebf8328
1 // PR c++/33496
2 // { dg-do compile { target c++11 } }
4 template<int M, int N> struct pair
6   int i, j;
7   pair () : i (M), j (N) {}
8 };
10 template<int... M> struct S
12   template<int... N> static int *foo ()
13   {
14     static int x[] = { (M + N)... };    // { dg-error "mismatched argument pack lengths" }
15     return x;
16   }
19 int *bar ()
21   return S<0, 1, 2>::foo<0, 1> ();