https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- But that's not a throw, it's a function call. If the definition of that function is compiled without exceptions then it will abort instead of throw.