[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / canon-type-4.C
blob673121bd247d735dae603efa848b4469b916b264
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/39754
3 // { dg-do compile }
5 template<typename> struct A ;
6 template<typename T ,typename = A<T> > struct B { } ;
8 template<class W, class>
9 struct D
11   typedef W X;
12   A<X[2]> a;
13 } ;
15 template<class Y>
16 struct E
18   B<Y[2]> b;
21 E < int > e;