Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.bugs / 891229_02.C
blobd91987bdf18d6b44c12b4efbdeecf595aa27b159
1 // { dg-do assemble  }
2 // g++ 1.36.1 bug 891229_02
4 // g++ limits the scope of names which are declared as typedef names within
5 // another type to that other type.
7 // This conflicts with the (global) scope given to such names by cfront 2.0.
9 // Cfront 2.0 passes this test.
11 // Note 2/15/94:  The standard has changed; this limiting of scope is correct
12 // behavior.  See 9.9.  --jason
14 // keywords: typedef, nested types, scope
16 struct foo {
17         foo ();
18         typedef void (*function_p) (void);
21 function_p fp;          // { dg-error "" } no such type in scope
23 foo::foo () {}
25 int main () { return 0; }