https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78015
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #5) > (In reply to Jakub Jelinek from comment #0) > > fails with std::terminate (), while works with -DWORKAROUND. > > It's the other way around, right? Was the testcase meant to use #ifndef? Yes, see #c2. > I can take a look at wrapping the non-C++ exception. Do we want to do that > for all foreign exceptions, or just __forced_unwind? Dunno.