This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


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 [] 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 ( []) shall not be defined as deleted. [Example:...