https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94415
Bug ID: 94415
Summary: Implement DR 2237: Can a template-id name a
constructor?
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
Implement <https://eel.is/c++draft/diff.cpp17.class#2>:
template<class T>
struct A {
A<T>(); // error: simple-template-id not allowed for constructor
A(int); // OK, injected-class-name used
~A<T>(); // error: simple-template-id not allowed for destructor
};
Note this is not a DR against C++17, the above is only ill-formed in C++20
onwards.