EH in egcs

Alexandre Oliva oliva@dcc.unicamp.br
Sun Oct 26 18:21:00 GMT 1997


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



More information about the Gcc mailing list