summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/decl-specifier-1.C
blob: baf0fe77816e40a2f098a6d00410f3ec01c6c999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
// Origin: PRs 7721 and 7803
// { dg-do compile }

namespace N
{
    template<typename> 
    struct X { };		// { dg-message "N::X" }
}

N::X X;                           // { dg-error "" "" }

int main()
{
    return sizeof(X);             // { dg-error "" "" }
    // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 15 }
}