// PR c++/107126 // { dg-options "" } template struct C { ~C(); }; template C::~C() // { dg-warning "template-id not allowed for destructor" "" { target c++20 } } { } int main() { C c;; }