1 /* PR c++/37556 */
2 /* { dg-do compile } */
3 
4 struct A
5 {
6   void foo();
7 };
8 
9 typedef void (A::T)(); /* { dg-error "typedef name may not be a nested" } */
10 
11 void bar(T); /* { dg-message "note: declared here" } */
12 
baz()13 void baz()
14 {
15   bar(&A::foo); /* { dg-error "too many arguments" } */
16 }
17