1 // PR c++/59637 2 // { dg-do compile { target c++11 } } 3 foo(T * p)4 template<typename T> void foo(T* p) 5 { 6 p->decltype(T{})::~X(); 7 } 8