From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC1EB385842A; Fri, 12 Apr 2024 21:06:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC1EB385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712955995; bh=HN4SqqW/HCOXLZHYG1z9a6gPHlpgj7wsQG5lZ1qpou8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Zaipms++WOjj2fRyxZuVRtJupDxZVrdpXnQXZK8lgUdUpigh6KSdZsZZOdlcEU7IG 9bo/vTnvc+UwvIDpinLIiHg5oR167mqRglPSgt2rR54GApiXlsLztw9WHQf7DlrMjv thRmYxk9kgujtfY04Lga2VoIZWpSN0FgkJX+TVQI= From: "uecker at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763 Date: Fri, 12 Apr 2024 21:06:34 +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: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: uecker at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 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=3D114574 --- Comment #28 from uecker at gcc dot gnu.org --- I do not fully understand yet what happens for may_alias, but it if we later complete the struct with the may_alias attribute it seems we would also nee= d to update the previously created pointer so that it has TYPE_REF_CAN_ALIAS_ALL= .=20 Setting TYPE_STRUCTURAL_EQUALITY for incomplete structs also for pre-C23 se= ems to fix the assertion failure, but I am not sure if this fixes the underlying bug.=