OSDN Git Service

PR c++/52685
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / virtual2.C
1 // PR c++/51137
2
3 struct A {};
4
5 template<int> struct B : virtual A
6 {
7   void foo()
8   {
9     (new A(*this))->A::~A();
10   }
11 };