PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / pr56819.C
blob4aa86b03ef0279308a4ebac24f5c52042fdde8ed
1 // PR debug/56819
2 // { dg-do compile }
3 // { dg-options "-fcompare-debug" }
4 // { dg-xfail-if "" { powerpc-ibm-aix* } }
6 template <typename>
7 struct A
9   template <typename>
10   struct B;
13 template <typename>
14 struct C
16   typedef int I;
19 template <typename T>
20 class D
22   typedef A <void> E;
23   typedef typename T::template B <E> F;
24   typedef typename C <F>::I I;
25   A <I> foo () { return A<I> (); }
28 template class D <A <void> >;