summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/synth2.C
blob: 5e420913f3352c53c0f2dbf983506df2c38a5bed (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
// PRMS Id: 4623
// Bug: g++ tries and fails to synthesize a copy constructor for D.

class A { };
class B: public virtual A { };
class C: public A { };
class D: public B, public C { }; // { dg-bogus "" } bad synthesis