blob: 1a1a8458745d1100dbcbd898d902f55fdbf83e86 [file] [log] [blame]
// { dg-do compile }
// Contributed by Paul Koning <pkoning at equallogic dot com>
// PR c++/15947: Accept destructor as template in qualified-id
template <int N> struct X {
~X();
};
template <int N>
X<N>::~X<N>(){} // { dg-error "template-id not allowed for destructor" "" { target c++20 } }