aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/typedef.C
blob: 9cbba5bce5f6b4d0238715ccbf6934776729e9ed (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// PRMS Id: 4687
// Bug: g++ misinterprets typedefs of function type in class scope.

typedef int (*F1) ();
struct A {
   typedef int F();
   F *fp;
   F1 g() { return fp; }	// { dg-bogus "" } typing
};