PR c++/54511
[official-gcc.git] / gcc / testsuite / g++.dg / template / pseudodtor5.C
blob751e662ad3164c1845a5616421d6a4af90c3bdd1
1 // PR c++/37563
3 struct A {};
5 template<int> struct Traits
7   typedef void X;
8 };
10 template<> struct Traits<0>
12   typedef A X;
15 template<int N> struct B
17   typedef typename Traits<N>::X Y;
19   void foo(Y y)
20   {
21     y.Y::A::~A();
22   }