// DR 2237 - Can a template-id name a constructor? // { dg-options "" } template struct X { X(); // { dg-warning "template-id not allowed for constructor" "" { target c++20 } } X(int); // OK, injected-class-name used ~X(); // { dg-warning "template-id not allowed for destructor" "" { target c++20 } } };