PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / virtual2.C
blob83b7ed6beaead0b3781633627aef82c36e0794a7
1 // PR c++/51137
3 struct A {};
5 template<int> struct B : virtual A
7   void foo()
8   {
9     (new A(*this))->A::~A();
10   }