8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/init10.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

27 lines
448 B
C

// 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
}