[cxx-abi] Re: [cxx-abi-dev] When to emit deleting destructor
Nelson, Clark
clark.nelson at intel.com
Wed Oct 16 17:20:45 UTC 2002
> >> This is a good question; it is unspecified at present.
> >>
> >> G++'s D0 destructors do not handle a NULL this pointer.
> >>
> >> What do HP and Intel do?
>
> Yes; we never heard from HP and Intel. HP, Intel?
The Intel compiler checks for null in the expansion of the
delete-expression, so it never passes a null pointer to a destructor. This
seems to be required by the standard ("if the value of the operand of delete
is the null pointer the operation has no effect", 5.3.5p2).
--
Clark Nelson
Intel Corporation
clark.nelson at intel.com
More information about the cxx-abi-dev
mailing list