[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / error48.C
blob483f7b54c35d19c27b9f3236ce0ad7aa1b190bf5
1 // PR c++/54416
3 template < typename T > struct foo;
4 template <> struct foo < int >;
5 template < typename T > struct bar
7   template <> struct foo < int > // { dg-error "non-namespace scope" }
8   {
9     void baz ();
10   };
12 void foo < int >::baz () { }
14 // Don't be picky about error-recovery.
15 // { dg-prune-output "." }