blob: 483f7b54c35d19c27b9f3236ce0ad7aa1b190bf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/54416
template < typename T > struct foo;
template <> struct foo < int >;
template < typename T > struct bar
{
template <> struct foo < int > // { dg-error "non-namespace scope" }
{
void baz ();
};
};
void foo < int >::baz () { }
// Don't be picky about error-recovery.
// { dg-prune-output "." }
|