// PR c++/32384 // { dg-do compile } template struct D { typedef int T; S foo (); D () { foo ().~T(); } // { dg-error "is not of type" } }; struct Z { Z () {} ~Z () {} }; D d;