1 // { dg-do assemble } 2 // GROUPS passed access 3 // access file 4 // Message-Id: <9211281852.AA24557@cove.cis.ufl.edu> 5 // From: Robert Forsman <thoth@cove.cis.ufl.edu> 6 // Subject: method access bug in gcc-2.3.1 on a sparc-sun-sunos4.1.2 7 // Date: Sat, 28 Nov 92 13:52:14 EST 8 9 extern "C" { 10 int atoi(const char*); 11 } 12 13 struct thingus; 14 15 class foo { 16 public: 17 static const foo alpha; 18 static const foo beta; 19 20 private: 21 int i; 22 foo(thingus * s); 23 public: foo()24 foo() {i=0;} 25 }; 26 27 struct thingus { 28 int i; 29 }; 30 31 static thingus blah, blah2; 32 33 const foo foo::alpha(&blah); 34 const foo foo::beta(&blah2); 35