bug in unexpected exceptions?

Alexandre Oliva oliva@dcc.unicamp.br
Fri Oct 3 12:29:00 GMT 1997

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

More information about the Gcc-bugs mailing list