8 A () { foo.~T (); } // { dg-error "does not have class type|expected" }
11 template <typename T> struct B
14 B () { foo.~T (); } // { dg-error "invalid use of member" }
19 template <typename T, typename S> struct C
22 C () { t.~S (); } // { dg-error "is not of type" }
27 template <typename T> struct D
31 D () { t.~U (); } // { dg-error "is not of type" }
36 template <typename T> struct E
40 E () { foo.~U (); } // { dg-error "is not of type" }