blob: 61b0cc3f2dcc20e2cf804bc1a18ed3ac1187a06c [file] [log] [blame]
/* PR c++/37556 */
/* { dg-do compile } */
struct A
{
void foo();
};
typedef void (A::T)(); /* { dg-error "15:typedef name may not be a nested" } */
void bar(T);
void baz()
{
bar(&A::foo);
}