1 // { dg-do assemble  }
2 // GROUPS passed scoping
3 // local-class file
4 // From: daniels@sugar.neosoft.com (Brad Daniels)
5 // Date:     Thu, 5 Aug 93 15:36:36 CDT
6 // Subject:  Bug in g++ 2.4.5: Can't touch nested class identifier inside its members
7 // Message-ID: <9308051536.AA06115@NeoSoft.Com>
8 
f()9 void f() {
10     class foo {
11         int x;
12     public:
13         foo() : x(1) {}
14         int bar() { foo p; return p.x; }
15     };
16 }
17