URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [scope4.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed scoping
// local-class file
// From: daniels@sugar.neosoft.com (Brad Daniels)
// Date: Thu, 5 Aug 93 15:36:36 CDT
// Subject: Bug in g++ 2.4.5: Can't touch nested class identifier inside its members
// Message-ID: <9308051536.AA06115@NeoSoft.Com>
void f() {
class foo {
int x;
public:
foo() : x(1) {}
int bar() { foo p; return p.x; }
};
}