This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: EH in egcs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]