This is the mail archive of the gcc-bugs@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: bug in unexpected exceptions?


Peter Schmid writes:

> This program works with xlC but crashes with egcs-2.90.11.
> Is this a bug or is the unexpected exception facility not fully supported?

In fact, it is correct.  If unexpected throws or rethrows an exception
that is not allowed in a throw-clause, terminate should be called.
There's a minor point still missing: if f(int) could throw
std::bad_exception, instead of calling terminate, a
std::bad_exception() exception should be propagated.  I don't think
this is supported (yet).

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
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]