https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97720
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|95741 | Status|NEW |ASSIGNED Target Milestone|--- |14.0 Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=95741 --- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to m101010a from comment #6) > I don't believe there's a way to solve PR55918 without modifying the > personality function in some way I agree; for C++17 (when dynamic exception specifications were removed) and later we could use an alternate personality function that knows that an exception-specification is noexcept, so we can just call terminate. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95741 [Bug 95741] Optimization skips destructor and calls terminate directly