[Bug libstdc++/14026] std::uncaught_exception is true although there are no uncaught exceptions (rethrow, ghost exception)
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Thu Feb 5 21:53:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-02-05 21:53 -------
Yes, it's a libstdc++ bug.
It looks like uncaught_exception() has always (3.0.0 ->) been buggy in case of
rethrow: globals->uncaughtExceptions (which is an unsigned int) is not increased
from 0, then when is decreased in the catch block becomes (unsigned int)(-1) and
uncaught_exception, which is globals->uncaughtExceptions != 0, returns 1. Ouch!
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14026
More information about the Gcc-bugs
mailing list