1 // { dg-do assemble } 2 // GROUPS passed constructors 3 // ctors file 4 // Subject: bug in handling static const object of the enclosing class 5 // Date: Tue, 1 Sep 92 10:38:44 EDT 6 7 class X 8 { // { dg-error "" } candidate 9 private: 10 int x; 11 public: 12 static const X x0; 13 X( int ); 14 }; 15 16 class Y 17 { 18 private: 19 X xx; 20 public: 21 Y(); 22 } X(int xi)23X::X( int xi ) 24 {// { dg-error "" } return.* 25 x = xi; 26 } 27 28 const X X::x0( 0 ); 29 Y()30Y::Y() 31 {// { dg-error "" } no mat 32 xx = X::x0; 33 } 34