https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112620
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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).