OSDN Git Service

PR c++/53549
[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 { };               // { dg-message "N::X" }
9 }
10
11 N::X X;                           // { dg-error "" "" }
12
13 int main()
14 {
15     return sizeof(X);             // { dg-error "" "" }
16     // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 15 }
17 }