// RUN: %clang_cc1 -fsyntax-only -verify %s template class s0 { template class s1 : public s0 { ~s1() {} s0 ms0; }; }; struct Incomplete; template void destroy_me(T me) { me.~T(); } template void destroy_me(Incomplete*); namespace PR6152 { template struct X { void f(); }; template struct Y { }; template void X::f() { Y *y; y->template Y::~Y(); y->template Y::~Y(); y->~Y(); } template struct X; }