Title
Deallocation functions returning void
Status
tentatively ready
Section
6.8.6.5.3 [basic.stc.dynamic.deallocation]
Submitter
Timur Doumler

Created on 2025-05-08.00:00:00 last changed 1 week ago

Messages

Date: 2026-09-22.17:16:08

Proposed resolution (approved by CWG 2026-09-22):

Change in 6.8.6.5.3 [basic.stc.dynamic.deallocation] paragraph 3 as follows:

Each A deallocation function shall have a declared return type void. ...
Date: 2025-11-06.23:04:52

Subclause 6.8.6.5.3 [basic.stc.dynamic.deallocation] paragraph 3 specifies:

Each deallocation function shall return void. ...

It has caused confusion in the marketplace whether that is a syntactic constraint on the return type of a deallocation function, or a semantic constraint on the behavior (e.g. a deallocation cannot perform a longjmp).

History
Date User Action Args
2026-09-22 17:16:08adminsetstatus: open -> tentatively ready
2025-11-06 23:04:52adminsetmessages: + msg8358
2025-05-08 00:00:00admincreate