1158577Smaxim// { dg-do run } 2158577Smaxim// g++ 1.36.1 bug 891230_01 3158577Smaxim 4158577Smaxim// g++ gives typedefs which are nested within class declarations a scope 5158577Smaxim// which is local to the class declaration itself. This causes examples 6158577Smaxim// like the following to get compile-time errors. 7158577Smaxim 8158577Smaxim// Cfront 2.0 passes this test. 9 10// keywords: typedef, nested types, scope 11 12struct foo { 13 14 typedef foo* foo_p; 15 void member (foo_p); 16}; 17 18void foo::member (foo_p p) { // { dg-bogus "" } s 19} 20 21int main () { return 0; } 22