* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic74.C
blobb86380b4e27122d200641ce353b3903bec0ec1ae
1 // { dg-do compile { target c++11 } }
2 template <class... Types> class A
4 public:
5   template <Types... Values> class X { /* ... */ }; // { dg-error "not a valid type for a template non-type parameter" }
6 };
8 template<class... Types> class B
10 public:
11   template <Types*... Values> class X { 
12     typename A<Types*...>::template X<Values...> foo;
13   };
16 int i;
17 float f;
19 A<int*, float*>::X<&i, &f> apple1;
20 B<int, float>::X<&i, &f> banana1;
22 A<int*, float*>::X<&i> apple2; // { dg-error "wrong number of template arguments" "wrong number" }
23 A<int*, float*>::X<&i, &f, &f> apple3; // { dg-error "wrong number of template arguments" "wrong number" }
24 A<int, float> apple4;
26 // { dg-prune-output "provided for" }