// PR c++/51137 struct A {}; template struct B : virtual A { void foo() { (new A(*this))->A::~A(); } };