throwing exception when new fails
Jason Merrill
jason@cygnus.com
Wed Oct 21 22:10:00 GMT 1998
>>>>> Nathan Sidwell <nathan@acm.org> writes:
> and eh_free can use, should malloc fail. I've assumed that __eh_alloc
> and eh_free are called in a stack-like manner (I had to alter
> __cp_pop_exception, to do this).
This is an invalid assumption; it is very possible for exceptions to be
freed in other than reverse order, because of the ability to rethrow.
Jason
More information about the Gcc
mailing list