1// { dg-do assemble  }
2// g++ 1.36.1 bug 891229_02
3
4// g++ limits the scope of names which are declared as typedef names within
5// another type to that other type.
6
7// This conflicts with the (global) scope given to such names by cfront 2.0.
8
9// Cfront 2.0 passes this test.
10
11// Note 2/15/94:  The standard has changed; this limiting of scope is correct
12// behavior.  See 9.9.  --jason
13
14// keywords: typedef, nested types, scope
15
16struct foo {
17	foo ();
18	typedef void (*function_p) (void);
19};
20
21function_p fp;		// { dg-error "" } no such type in scope
22
23foo::foo () {}
24
25int main () { return 0; }
26