]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/parse/error32.C
/cp
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / parse / error32.C
CommitLineData
d1a83041 1/* PR c++/37555 */
9f91a643 2/* { dg-do compile } */
d1a83041 3
4struct A {};
5
43bbc1da 6typedef void (A::T)(); /* { dg-error "15:typedef name may not be a nested-name-specifier" } */
d1a83041 7
8void foo()
9{
10 T t;
11 t; /* { dg-error "was not declared" } */
12}