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]
Other format: [Raw text]

[Bug libstdc++/14026] std::uncaught_exception is true although there are no uncaught exceptions (rethrow, ghost exception)


------- 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


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