1 // { dg-do assemble } 2 // PRMS Id: 4342 3 // Bug: g++ does not massage things enough to allow calling ~X(). 4 5 struct X 6 { 7 virtual ~X (); 8 }; 9 10 struct Y : public X 11 {}; 12 13 struct Z : public Y, public X // { dg-warning "" } 14 {}; 15 foo()16void foo () 17 { 18 Z* f = new Z; 19 delete f; // { dg-bogus "" } 20 } 21