OpenMP/C++: Use STRIP_REFERENCE_REF to fix declare variant with reference-returning...
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / vt-34055.C
blob3ee7bad45c99fa651eb3d4bf21d8c251b3511769
1 // { dg-do compile { target c++11 } }
2 // PR c++/34055
3 template<typename...> struct A;
5 template<typename...T> struct A<T*> // { dg-error "parameter packs|T" }
7   void foo();
8 };
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" }
18   void foo();
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" }
28   void foo();
31 template<typename...T> void C<T()>::foo() {} // { dg-error "invalid declarator" }