blob: da27afdda2b4a57dcba67dc007117db33fe66e51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* PR c++/37555 */
/* { dg-do compile } */
struct A {};
typedef void (A::T)(); /* { dg-error "typedef name may not be a nested-name-specifier" } */
void foo()
{
T t;
t; /* { dg-error "was not declared" } */
}
|