From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 749633858C56; Tue, 8 Nov 2022 13:21:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 749633858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667913704; bh=IRlLWJwzbl3q/tQLRaiQunXJkuy693DOQB63voxDrvc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tPfuxFGYr5pWkJAd6Jxg/QZAycmlPAXcMrI3Ro1tKkqxUFsqPm4uuPRRE3f+3jtHu f8i1XE27mXGBncyZR5QY399kJLhjmt4ZYQMQDxmifzOnvaCYxw6ryMU/LpawD+hdkQ W+IkmTC0U4eD/uOa59UHK2RyB9FeUG0VwEWQd2qg= From: "boris at kolpackov dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107555] Never constructed object destroyed during exception handling Date: Tue, 08 Nov 2022 13:21:43 +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.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: boris at kolpackov dot net X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D107555 --- Comment #6 from Boris Kolpackov --- I was under the impression that only something runnable would be useful, bu= t if all that's need is a preprocessed translation unit, then that's no problem = at all. I've also attached the translation unit with the workaround for your reference. Both files were produced with the following command line using GCC 12.2.0 (Debian 12.2.0-3): g++-12 ... -DLIBBUILD2_SHARED_BUILD -DLIBBUILD2_CC_SHARED_BUILD -DLIBBUILD2_BIN_SHARED -DLIBBUILD2_SHARED -DLIBBUTL_SHARED=20 -DLIBPKG_CONFIG_SHARED -g -std=3Dc++23 -finput-charset=3DUTF-8 -fPIC -E -fdirectives-only -o compile-rule.ii compile-rule.cxx And should be compiled with: g++-12 -DLIBBUILD2_SHARED_BUILD -DLIBBUILD2_CC_SHARED_BUILD -DLIBBUILD2_BIN_SHARED -DLIBBUILD2_SHARED -DLIBBUTL_SHARED -DLIBPKG_CONFIG_SHARED -g -std=3Dc++23 -finput-charset=3DUTF-8 -fPIC -o compile-rule.o -c -fdirectives-only compile-rule.ii Let me know if there is anything else you need.=