From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A1203858D3C; Mon, 15 Apr 2024 17:15:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A1203858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713201315; bh=7GAR46IbRYwRAHgGKUBukRM0IXaF+/YYcejhU/vYtHc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LMNd6eFPQ4VhIeHI/HXEOfGKf93N2Ifp2JWzYjGsc/gu5BWQ8hokRZRPCW7n0unYH z+r1TwMVDVRmkgYWMMdcCPqSm0E+Zvl2I1x3gfIdcV7GFOJPPUn4ax3DRqZ02rDKiQ 8velBbODvDbh70bGkKM7WN+IPrc0xHBv+WPb8XnI= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0 Date: Mon, 15 Apr 2024 17:15:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113208 --- Comment #28 from Jan Hubicka --- So the main problem is that in t2 we have _ZN6vectorI12QualityValueEC1ERKS1_/7 (vector<_Tp>::vector(const vector<_Tp>= &) [with _Tp =3D QualityValue]) Type: function definition analyzed alias cpp_implicit_alias Visibility: semantic_interposition public weak comdat comdat_group:_ZN6vectorI12QualityValueEC5ERKS1_ one_only Same comdat group as: _ZN6vectorI12QualityValueEC2ERKS1_/6 References: _ZN6vectorI12QualityValueEC2ERKS1_/6 (alias)=20 Referring:=20 Function flags: Called by: _Z41__static_initialization_and_destruction_0v/8 (can throw external) Calls:=20 and in t1 we have _ZN6vectorI12QualityValueEC1ERKS1_/2 (constexpr vector<_Tp>::vector(const vector<_Tp>&) [with _Tp =3D QualityValue]) Type: function definition Visibility: semantic_interposition external public weak comdat comdat_group:_ZN6vectorI12QualityValueEC1ERKS1_ one_only References:=20 Referring: Function flags: Called by:=20 Calls:=20 This is the same symbol name but in two different comdat groups (C1 compare= d to C5). With -O0 both seems to get the C5 group I can silence the ICE by making aliases undefined during symbol merging (wh= ich is kind of hack but should make sanity checks happy), but I am still lost h= ow this is supposed to work in valid code.=