blob: 5618e80eba0763e9e47ab252cf9fa7adfe5a970b [file] [log] [blame]
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/39639
// { dg-do compile { target c++11 } }
// { dg-prune-output "template argument 1 is invalid" }
template <class... Types>
struct S
: S<...Types>, // { dg-error "expected parameter pack before '...'" }
S<...Types...>, // { dg-error "expected parameter pack before '...'" }
S<...> // { dg-error "expected parameter pack before '...'" }
{
static int f () { return 1;}
};
int
main ()
{
return S<void>::f ();
}