[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec8.C
blobccbf17c2f769731f29b0d37f05cbf0415571d8c6
1 // { dg-do compile }
3 // Specialization of member class template.
5 template<class T1> struct A
7   template<class T2> struct B {};
8   template<class T2> struct C {};
9 }; 
11 template <> template <> struct A<int>::B<int>;
12 template <> template <class U> struct A<int>::B {};
13 A<int>::B<int> ab;              // { dg-error "incomplete" }
15 A<int>::C<char> ac;
16 template <> template <class U> struct A<int>::C {}; // { dg-error "specialization" }