[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr59930-2.C
bloba7e6ea4ea9aabdc51c7d9544df1aa11862351240
1 // PR c++/59930
3 namespace N {
4   template < typename T > class A
5   {
6     // Injects N::N
7     template < T > friend class N;
8     // { dg-error "template parameter" "" { target *-*-* } .-1 }
9     // { dg-error "redeclared"  "" { target *-*-* } .-2 }
10   };
13 void f ()
15   N::A < int > a1;
16   N::A <short > a2;