Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/typedef.C

raw
1 // { dg-do assemble }
2 // PRMS Id: 4687
3 // Bug: g++ misinterprets typedefs of function type in class scope.
4
5 typedef int (*F1) ();
6 struct A {
7 typedef int F();
8 F *fp;
9 F1 g() { return fp; } // { dg-bogus "" } typing
10 };