ABI bug: virtual destructors vs. delete

Jason Merrill jason at redhat.com
Tue Feb 13 12:19:01 UTC 2001


>>>>> "Mark" == Mark Mitchell <mark at codesourcery.com> writes:

> In particular, 5.2.5 should be amended to say:

>   The deleting variant of a destructor must not be emitted if
>   the destructor is non-virtual.

So 'delete foo;' should call operator delete directly if foo's destructor
is non-virtual?

Another possible solution would be to just suppress the deleting variant if
calling op delete would be ill-formed.  That's more like what we've done in
g++.

Jason




More information about the cxx-abi-dev mailing list