1 // { dg-options "-std=gnu++0x" }
2 template <class... Types> class A
5 template <Types... Values> class X { /* ... */ }; // { dg-error "not a valid type for a template constant parameter" }
8 template<class... Types> class B
11 template <Types*... Values> class X {
12 typename A<Types*...>::template X<Values...> foo;
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" }
23 // { dg-error "invalid type" "" { target *-*-* } 22 }
24 A<int*, float*>::X<&i, &f, &f> apple3; // { dg-error "wrong number of template arguments" }
25 // { dg-error "invalid type" "" { target *-*-* } 24 }