1 // PR c++/32384
2 // { dg-do compile }
3 
4 template<typename S> struct D
5 {
6   typedef int T;
7   S foo ();
8 
DD9   D () { foo ().~T(); }		// { dg-error "10:is not of type" }
10 };
11 
12 struct Z
13 {
ZZ14   Z () {}
~ZZ15   ~Z () {}
16 };
17 
18 D<Z> d;
19