blob: 5c39b602de58cc3ef4e2f6fdd8d90f908cfa30a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
// Origin: PRs 7721 and 7803
// { dg-do compile }
namespace N
{
template<typename>
struct X { };
}
N::X X; // { dg-error "" "" }
int main()
{
return sizeof(X); // { dg-prune-output "not declared in this scope" }
}
|