PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef15.C
blobe9e3d94ff2e918744e2c5db3e66aa77613837954
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/26693
3 // { dg-do compile }
5 template<class T> struct C0;
7 struct Foo {
8   typedef int TypedefedFoo;
9   typedef C0<Foo> TypedefedC0;
12 template<class T>
13 struct C0
15   typedef Foo TypedefedFoo;
16   typename T::TypedefedC0::TypedefedFoo m;
19 template<class U>
20 struct C1
22   typedef C0<Foo> TypedefedC0;
25 C0<C1<int> > c;