[cxx-abi-dev] __cxa_delete{,2,3}(NULL, ...) legal?

Mark Mitchell mark at codesourcery.com
Fri Oct 24 22:29:15 UTC 2003


Scott, Dennis --

The short answer is that the ABI does not really specify the behavior of
these functions when the first argument is NULL.

The G++ runtime does not presently permit the first argument to be NULL.
Changing that would be OK; it's backwards compatible.

If there's no objection, we can update the specification to indicate that
the "array_address" parameter may be NULL.

----- Original Message ----- 
From: "Dennis Handly" <dhandly at cup.hp.com>
To: <cxx-abi-dev at codesourcery.com>
Sent: Wednesday, October 22, 2003 9:10 PM
Subject: Re: [cxx-abi-dev] __cxa_delete{,2,3}(NULL, ...) legal?


> >Is it legal to call __cxa_delete{,2,3} with a first argument of NULL?
>
> (I assume you meant __cxa_vec_delete*?)
>
> >I think it should be allowed so that the callers don't have to do the
> >NULL-test.
>
> Our versions tests inside.
>




More information about the cxx-abi-dev mailing list