This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: EH in egcs
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: EH in egcs
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 27 Oct 1997 00:16:03 -0200
- Cc: jason at cygnus dot com, egcs at cygnus dot com
- References: <m0xPeUL-0004edC@ocean.lucon.org>
H J Lu writes:
> In this case, "throw 1" just makes bar out of scope.
Now assume throw 1 is inside a function call. 1 must be considered
thrown before bar is destructed since, while bar.foo::~foo() is
running, std::uncaught_exception() must return true. There's no way
you can cope with this unless there's a stack of pending exceptions.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil