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

2024-04-05


735. Missing case in specification of safely-derived pointers

Section: _N4885_6.7.5.5.4  [basic.stc.dynamic.safety]     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.7.5.5.4 [basic.stc.dynamic.safety] 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.7.5.5.4 [basic.stc.dynamic.safety] paragraph 2, bullet 2, as follows: