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


735. Missing case in specification of safely-derived pointers

Section: _N4885_6.  []     Status: CD2     Submitter: Jens Maurer     Date: 14 October, 2008

N2800 comment DE 3

[Voted into WP at October, 2009 meeting.]

The bullets in _N4885_6. [] paragraph 2 do not appear to cover the following example:

   int& i = *new int(5);
   // do something with i
   delete &i;

Should &i be a safely-derived pointer value?

Proposed resolution (September, 2009):

Change _N4885_6. [] paragraph 2, bullet 2, as follows: