Allocator returning null during array construction (?)

Zagorodnev, Grigory Grigory_Zagorodnev at stl.sarov.ru
Thu Sep 4 13:40:26 UTC 2003


The C++ Standard [clause 5.3.4, paragraph 13] says:
"...If the allocation function is declared with an empty
exception-specification, throw(), it returns null to indicate failure to
allocate storage and a nonnull pointer otherwise. ] If the allocation
function returns null, initialization shall not be done, the deallocation
function shall not be called, and the value of the newexpression shall be
null. "

The C++ ABI [clause 3.3.3], however, does not specify behaviour of array
construction functions __cxa_vec_new2 and __cxa_vec_new3 for the case when
allocator returns null.

Would you clarify this behaviour, please.


--------------------------------
 Grigory Zagorodnev
 Principal Software Engineer
 Software Technology Laboratory
--------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2263 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20030904/e926dc44/attachment.bin>


More information about the cxx-abi-dev mailing list