FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 891230_01.C
blobac49e0bd4446bac80a0c0eed7cac12f59d8cdf01
1 // g++ 1.36.1 bug 891230_01
3 // g++ gives typedefs which are nested within class declarations a scope
4 // which is local to the class declaration itself.  This causes examples
5 // like the following to get compile-time errors.
7 // Cfront 2.0 passes this test.
9 // keywords: typedef, nested types, scope
11 struct foo {
13     typedef foo* foo_p;
14     void member (foo_p);
17 void foo::member (foo_p p) {    // gets bogus errors
20 int main () { return 0; }