]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/parse/error33.C
/cp
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / parse / error33.C
CommitLineData
d1a83041 1/* PR c++/37556 */
9f91a643 2/* { dg-do compile } */
d1a83041 3
4struct A
5{
6 void foo();
7};
8
43bbc1da 9typedef void (A::T)(); /* { dg-error "15:typedef name may not be a nested" } */
d1a83041 10
60cce472 11void bar(T); /* { dg-message "note: declared here" } */
d1a83041 12
13void baz()
14{
60cce472 15 bar(&A::foo); /* { dg-error "too many arguments" } */
d1a83041 16}