2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / ctors5.C
blob7078013fe77fb4391d32c0affef0a11ad4ee693c
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
7 class X
8 { // { dg-error "" } candidate
9   private:
10     int x;
11   public:
12     static const X x0;
13     X( int );
16 class Y
18   private:
19     X xx;
20   public:
21     Y();
23 X::X( int xi )
24 {// { dg-error "" }  return.*
25     x = xi;
28 const X X::x0( 0 );
30 Y::Y()
31 {// { dg-error "" }  no mat
32     xx = X::x0;