c++: constantness of call to function pointer [PR111703]
[official-gcc.git] / gcc / testsuite / g++.dg / parse / error33.C
blob61b0cc3f2dcc20e2cf804bc1a18ed3ac1187a06c
1 /* PR c++/37556 */
2 /* { dg-do compile } */
4 struct A
6   void foo();
7 };
9 typedef void (A::T)(); /* { dg-error "15:typedef name may not be a nested" } */
11 void bar(T);
13 void baz()
15   bar(&A::foo);