OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / pr39639.C
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/39639
3 // { dg-do compile }
4 // { dg-options "-std=c++0x" }
5
6 template <class... Types>
7 struct S
8   : S<...Types>, // { dg-error "expected parameter pack before '...'" }
9     S<...Types...>, // { dg-error "expected parameter pack before '...'" }
10     S<...> // { dg-error "expected parameter pack before '...'" }
11 {
12   static int f () { return 1;}
13 };
14
15 int
16 main ()
17 {
18   return S<void>::f ();
19 }
20