From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4AD533858C24; Fri, 5 Apr 2024 07:51:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4AD533858C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712303469; bh=NhR0rQv6Tl6M2J5JxumNF96TB+nKEaa0od6/qaT4PSw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YP526U4es+B4ncasYcriVGHxRkBiRc7sIQqwof9RZTtHtY19rZqgZ+9kKl/s8aqXx PuDP2JPSC32WPZsqIxeP+X7cGE/Y5SjZ0N7GR2ArJHwXZbOnMJg5hfunyeEilygUOH KgbhpHCFFJepZw9wUR5qUqC1193UlKhEpLnh8edE= From: "muecker at gwdg dot de" 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, 05 Apr 2024 07:51:09 +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: muecker at gwdg dot de 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=3D114574 --- Comment #20 from Martin Uecker --- (In reply to Martin Uecker from comment #18) > >=20 > > + TYPE_CANONICAL (x) =3D TYPE_CANONICAL (t); > > As has been discussed, this is wrong, it should have been > > TYPE_CANONICAL (x) =3D build_qualified_type (TYPE_CANONICAL (t), TYPE_Q= UALS > > (x)); > > or so. >=20 > Thanks Actually, I think we need to also add the lookup in the hash table to c_build_qualified_type to find the right TYPE_CANONICAL.=