Merge up to mainline revision 153570.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic96.C
blobd4709d074b67d23d0f7c7f96ce1507f27b46e1e1
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/41785
3 // { dg-options -std=c++0x }
5 struct a {};
7 template < typename T, typename ENCLOSING >
8 struct base;
10 template < typename... T >
11 struct derived
12   : public base< T, derived< T... > >...
13 {};
15 template < typename... T>
16 struct base< a, derived< T... > >
18   typedef derived< T... >
19           Derived;
22 int main()
24   derived< a > instance;