From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 229DF385DC13; Wed, 24 Jan 2024 19:40:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 229DF385DC13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706125258; bh=u2nOF8jtSCI3CPyyutQHnrGXRmnY2GUQORGkhvLNXIQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RA77UQcgTwGYrSqkf6ClBpyPKB7J3CeS7kRyMLuM3xoptnNaHOxm/2AD/hnaRdMHQ Tvx4IsT5u9OCVVZX7t/tscQTuIW9QQSaDOT63vjrgCEh0KfQn0hzio7/zFuOxNNapJ XCoce+GCI0GmYawubJXwX3tC3WL02DtzrQCLflbI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113347] [12/13 Regression] ICE during gimplification building TVM since r13-8079-gd237e7b291ff52 Date: Wed, 24 Jan 2024 19:40:57 +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: 13.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D113347 --- Comment #11 from GCC Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:050fc885a6e324a03a6397d86134ab4b68aac944 commit r12-10112-g050fc885a6e324a03a6397d86134ab4b68aac944 Author: Jason Merrill Date: Tue Jan 23 15:41:09 2024 -0500 c++: throwing cleanup after return [PR113347] Here we were assuming that current_retval_sentinel would be set if we h= ave seen a throwing cleanup, but that's not the case if the cleanup is after all returns. This change isn't needed on trunk, where current_retval_sentinel is set= for all NRV functions. PR c++/113347 gcc/cp/ChangeLog: * semantics.cc (finalize_nrv_r): Handle null current_retval_sentinel. gcc/testsuite/ChangeLog: * g++.dg/eh/return3.C: New test. (cherry picked from commit 713fbaff8b17a01d3b72110f89112851ed43a90a)=