From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D66133858C60; Thu, 18 Jan 2024 19:44:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D66133858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705607066; bh=+NPxdIxiInF9dAl5EtTrPRLPLtvMyUo2cEYicqK6XHA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SWCWN6rxNfYxDev0pDWB/hV+67RDfOS3YSWJipN6q2CcSfRq+Iy0p9kryUwTKbG5s k7Z7GWuZ9Qc9mSWsOJ+DoMsXvTwjK0wV8Y/vsK/bKH+dmATYw/NLHSFVLJYjuAgmi2 WFSw5MiWyyzv9zAz4pVY2Amg6beKipJhJ5audwc8= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/112815] ICE: in vague_linkage_p, at cp/decl2.cc:2329 with -flto -fno-weak Date: Thu, 18 Jan 2024 19:44:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, non-weak X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc everconfirmed bug_status component cf_reconfirmed_on 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=3D112815 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Component|c++ |ipa Last reconfirmed| |2024-01-18 --- Comment #1 from Marek Polacek --- Confirmed. Started with r6-1066-g233ce289250944: commit 233ce289250944dde071638799f9ba1a51a0a9bf Author: Jan Hubicka Date: Sun May 24 21:38:14 2015 +0200 re PR lto/66180 (many -Wodr false positives when building LLVM with -fl= to) PR lto/66180 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL is set; check for assembler name at LTO time. (type_in_anonymous_namespace): Remove hacks, check that all anonymous types are called "" (odr_type_p): Simplify; add check for "" (odr_subtypes_equivalent): Add odr_type_p check. * tree.c (need_assembler_name_p): Even anonymous namespace needs assembler name. * mangle.c (mangle_decl): Mangle anonymous namespace types as "". * g++.dg/lto/pr66180_0.C: New testcase. * g++.dg/lto/pr66180_1.C: New testcase. From-SVN: r223633=