aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/init10.C
blob: b6f2085bfc5212687b0ef9db249a13407c3d844b (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
// Build don't link: 
// GROUPS passed initialization
// init file
// From: Ingo Donasch <ingo@specs.de>
// Date:     Wed, 16 Jun 93 13:28:55 +01:00
// Subject:  g++-2.4.2 bug report
// Message-ID: <199306161128.AA22079@opamp.specs.de>

class b;

class a {
public:
        a(const b*);            // needs this parameter
};

class b {
private:
        a three[3];
public:
        b();
};

b::b() : three(this)
{ // ERROR - bad array initializer
}