1 2 3 4 5 6 7 8 9
// PR c++/29273 struct A { virtual ~A () { } }; struct B: A { } b [1]; void foo () { dynamic_cast<B*>(b); }