OSDN Git Service

PRs C++/6803, C++/7721 and C++/7803
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / decl-specifier-1.C
1 // Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
2 // Origin: PRs 7721 and 7803
3 // { dg-do compile }
4
5 namespace N
6 {
7     template<typename> 
8     struct X { };
9 }
10
11 N::X X;                           // { dg-error "" "" }
12
13 int main()
14 {
15     return sizeof(X);             // { dg-error "" "" }
16 }