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