Title
Destructors declared consteval
Status
drwp
Section
11.4.7 [class.dtor]
Submitter
Corentin Jabot

Created on 2023-09-07.00:00:00 last changed 7 months ago

Messages

Date: 2023-10-20.21:07:14

Proposed resolution (approved by CWG 2023-10-20):

Change in 11.4.7 [class.dtor] paragraph 1 as follows:

Each decl-specifier of the decl-specifier-seq of a prospective destructor declaration (if any) shall be friend, inline, virtual, or constexpr, or consteval.
Date: 2023-11-15.00:00:00

[Accepted as a DR at the November, 2023 meeting.]

There is a conflict between 9.2.6 [dcl.constexpr] paragraph 2

A destructor, an allocation function, or a deallocation function shall not be declared with the consteval specifier.

and 11.4.7 [class.dtor] paragraph 1

Each decl-specifier of the decl-specifier-seq of a prospective destructor declaration (if any) shall be friend, inline, virtual, constexpr, or consteval.
History
Date User Action Args
2024-04-05 21:43:46adminsetstatus: dr -> drwp
2023-12-19 10:15:28adminsetstatus: ready -> dr
2023-10-20 21:07:14adminsetstatus: open -> ready
2023-10-15 14:47:18adminsetmessages: + msg7457
2023-09-07 00:00:00admincreate