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

9 lines
243 B
C

// PRMS Id: 4623
// Bug: g++ tries and fails to synthesize a copy constructor for D.
// Build don't link:
class A { };
class B: public virtual A { };
class C: public A { };
class D: public B, public C { }; // gets bogus error - bad synthesis