blob: 796aff0785b8ca401d5ac128fd7cb6edb79d87fe [file] [log] [blame]
// PR c++/32384
// { dg-do compile }
template<typename S> struct D
{
typedef int T;
S foo ();
D () { foo ().~T(); } // { dg-error "is not of type" }
};
struct Z
{
Z () {}
~Z () {}
};
D<Z> d;