libstdc++ PATCH for c++/41174, c++/59224, Core DR 475

Jason Merrill jason@redhat.com
Mon Jan 27 13:57:00 GMT 2014


DR 475 clarified that uncaught_exception shouldn't return true until we 
are done creating the exception object and enter the unwinder:

http://open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#475

Fixed by moving the adjustment of the uncaughtExceptions count from the 
allocation to the throw.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 41174.patch
Type: text/x-patch
Size: 3271 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140127/b45337c2/attachment.bin>


More information about the Gcc-patches mailing list