From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 992CD3858D39; Sun, 4 Jun 2023 02:11:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 992CD3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685844680; bh=j/daAPxo17IUA8K+v88cM/F9B/SSNk8h7n3Myues3bQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xNoUOn9gt6riDN0nD3c9K9IsmizeFarn11CJVU/BXux1LFecUHHqhFY7lApBjy81s u7aSTJcfZGsppCoqEHcZ38T45pT23HF2KyzIABA55UBkS06/vTM2k1YsSpTcCCUx7w 8xleBwUPTpCAcSJSSVU4bXnhS9EiuY7LlQXPwLiE= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97720] throw in try in noexcept fn calls terminate without handling the exception Date: Sun, 04 Jun 2023 02:11:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: dependson bug_status target_milestone assigned_to see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97720 Jason Merrill 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 gn= u.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D95741 --- Comment #9 from Jason Merrill --- (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=3D95741 [Bug 95741] Optimization skips destructor and calls terminate directly=