1 // { dg-do compile { target c++11 } }
3 template<typename...> struct A;
5 template<typename...T> struct A<T*> // { dg-error "parameter packs|T" }
10 template<typename...T> void A<T*>::foo() {} // { dg-error "invalid declarator" }
14 template<typename...> struct B;
16 template<typename...T> struct B<T&> // { dg-error "parameter packs|T" }
21 template<typename...T> void B<T&>::foo() {} // { dg-error "invalid declarator" }
24 template<typename...> struct C;
26 template<typename...T> struct C<T()> // { dg-error "parameter packs|T" }
31 template<typename...T> void C<T()>::foo() {} // { dg-error "invalid declarator" }