This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


908. Deleted global allocation and deallocation functions

Section: 9.5  [dcl.fct.def]     Status: CD2     Submitter: John Spicer     Date: 2 June, 2009

[Voted into WP at October, 2009 meeting.]

According to 9.5 [dcl.fct.def] paragraph 10, a deleted definition of a function must be its first declaration. It is not clear whether this requirement can be satisfied for the global allocation and deallocation functions. According to 6.7.5.5 [basic.stc.dynamic] paragraph 2, they are “implicitly declared in global scope in each translation unit of a program.” However, that does not specify where in the translation unit the declaration is considered to take place. This needs to be clarified.

Proposed resolution (July, 2009):

Change 9.5 [dcl.fct.def] paragraph 10 as follows:

...A deleted definition of a function shall be the first declaration of the function. An implicitly declared allocation or deallocation function (6.7.5.5 [basic.stc.dynamic]) shall not be defined as deleted. [Example:...