This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: throwing exception when new fails
- To: nathan at acm dot org (Nathan Sidwell), egcs at cygnus dot com
- Subject: Re: throwing exception when new fails
- From: Jason Merrill <jason at cygnus dot com>
- Date: 21 Oct 1998 22:09:47 -0700
- References: <362CD14A.CA8.cygnus.egcs@acm.org>
>>>>> 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