From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 813713858D37; Fri, 3 Nov 2023 10:01:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 813713858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699005696; bh=GJhDFP3CiP4x9esTfOpXjLXaprR7df8l2GPvpI8AuDA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HIx9bxyoExUIhBZfZvbOfWddh/2YuRT2rPIIc2T0wZQ57FizQAGiLXXh/hep5jlLv /pLYE6rcP9xMrejoGnfVzjem720j7j4C7T+a7Od1qm4Fa0sf7l0xQ7iRmnDZxg3UyX xEWYmkClasRdiv9t6K/OBwH8J9v5cTm+6RhRXLck= From: "alexander.grund@tu-dresden.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112301] [12/13/14 regression] Double destruction of returned object when exiting the scope causes an exception which gets rethrown since r12-6333-gb10e031458d541 Date: Fri, 03 Nov 2023 10:01:35 +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: 12.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: alexander.grund@tu-dresden.de 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: 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=3D112301 --- Comment #4 from Alexander Grund --- Thank you! Will there be backports for 12.x? The current patch is conflicting due to "c++: enable NRVO from inner block [PR51571]" and while it seems to be easy enough to backport both patches in order I'm not sure about possible side effects due to that especially how s= ome additionally introduced NRVOs can affect interoperability of programs/libra= ries compiled before and after that change.=