blob: 4307a683b71cd457047b6e4642ddc070757d1195 [file] [log] [blame]
// PR c++/71748
struct A
{
virtual ~A () {}
};
struct B : public A
{
virtual ~B () {}
};
template < int > void foo ()
{
B *b = new B;
b->~A ();
}
int main ()
{
foo < 0 > ();
return 0;
}