A destructor, an allocation function, or a deallocation function shall not be declared with the consteval specifier.
Which seems entirely reasonable.
But in [class.dtor]/p1.2 we say
Each decl-specifier of the decl-specifier-seq of a prospective destructor declaration (if any) shall be friend, inline, virtual, constexpr, or consteval.
This is not as reasonable, and it is contradictory.
Suggested resolution:
Each decl-specifier of the decl-specifier-seq of a prospective destructor declaration (if any) shall be friend, inline, virtual, or constexpr, or consteval.
Issue description:
In [dcl.constexpr]/p2 we say,
Which seems entirely reasonable.
But in [class.dtor]/p1.2 we say
This is not as reasonable, and it is contradictory.
Suggested resolution:
Each decl-specifier of the decl-specifier-seq of a prospective destructor declaration (if any) shall be friend, inline, virtual, or constexpr
, or consteval.