From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB1133858401; Sat, 13 May 2023 06:30:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB1133858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683959409; bh=RRO2NeknFfEk9xeLe+FY+tgpYStDMUkviSunIcZxsMA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e8MiByehBjNFP033P+m5kK1fTrO1NQXEYgkUZk8hahdAnoDUbKrT55upq6UrrcJ81 lZX//arizr8ELuxr1WrbyCS2RAAdpZnytFVrrx6plAEYpWs1WpLsH7mJJTEkDnd90e Obtr/yo56blwdN6IO6RyD7NBXYM1B6jYmGKija9Q= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106943] GCC building clang/llvm with LTO flags causes ICE in clang Date: Sat, 13 May 2023 06:30:09 +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: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org 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=3D106943 --- Comment #31 from Alexander Monakov --- (In reply to Xi Ruoyao from comment #28) > "To put it simply, operator delete for class User inspects memory of the > object after the end of its lifetime. This shows as a use-after-dtor error > when running under MemorySanitizer." >=20 > So it seems technically we'll need -fno-lifetime-dse here? Our docs say > -flifetime-dse only "preserve stores before the constructor starts" but > "still treat the object as dead after the destructor". Agreed, -fno-lifetime-dse seems appropriate here. Thank you for proposing a patch on the LLVM side!=