Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 891230_01.C
blob769363d58228581728aae8b50adf594cc5ca2ae8
1 // { dg-do run  }
2 // g++ 1.36.1 bug 891230_01
4 // g++ gives typedefs which are nested within class declarations a scope
5 // which is local to the class declaration itself.  This causes examples
6 // like the following to get compile-time errors.
8 // Cfront 2.0 passes this test.
10 // keywords: typedef, nested types, scope
12 struct foo {
14     typedef foo* foo_p;
15     void member (foo_p);
18 void foo::member (foo_p p) {    // { dg-bogus "" } s
21 int main () { return 0; }