[Bug c++/112620] Changes to the referenced object in exception handler are lost after rethrow

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112620

--- Comment #2 from Andrew Pinski  ---
(In reply to Fedor Chelnokov from comment #0) 
> prints some not-null value in Clang and MSVC, which is correct according to
> https://eel.is/c++draft/except.handle#15

Clang had a hack added to workaround the Itanium C++ ABI deficiency but that
itself broke std::rethrow_exception .
Anyways this is recorded in PR 99858 (and the linked LLVM github issue).

[Bug c++/112620] Changes to the referenced object in exception handler are lost after rethrow

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112620

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from Andrew Pinski  ---
Dup of bug 99858.

*** This bug has been marked as a duplicate of bug 99858 ***