1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// PR middle-end/17525 struct A { ~A(); int a; }; struct B : public A { virtual ~B(); }; void run (B& b, B& b1) { b1 = b; }