Debian Codegraph @

gcc/testsuite/g++.dg/parse/dtor4.C

raw
1 // { dg-do compile }
2 // Contributed by Paul Koning <pkoning at equallogic dot com>
3 // PR c++/15947: Accept destructor as template in qualified-id
4
5 template <int N> struct X {
6 ~X();
7 };
8
9 template <int N>
10 X<N>::~X<N>(){} // { dg-error "template-id not allowed for destructor" "" { target c++20 } }