https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116151
--- Comment #2 from Arsen Arsenović <arsen at gcc dot gnu.org> --- I suspect this is due to EH - -fno-exceptions fixes the C++ case, as does noexcept, and -fexceptions breaks the C case.
arsen at gcc dot gnu.org via Gcc-bugs Tue, 30 Jul 2024 16:32:14 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116151
--- Comment #2 from Arsen Arsenović <arsen at gcc dot gnu.org> --- I suspect this is due to EH - -fno-exceptions fixes the C++ case, as does noexcept, and -fexceptions breaks the C case.