From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 66FB53847725; Wed, 3 Apr 2024 18:02:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66FB53847725 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712167352; bh=JZO2Cva+VYsTiSpw3qJS79nZyul47OlsZeqOLTBqwd8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DDx6yktNveu/QUCzOt/cLb6Pay9hF677nwhZWB/Jc2ToW9/ENXzmtnZCdOUW23/+F KEOAZXUSOfk1Ku4VN9mxxPDROAafsFqSMV2/pg/HY5AwUnhP1kyQfCVGVv7Iurc9bl saNcat5FI50I+yGyXGwoAGqvMZaMDayczOUFvkrQ= 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: Wed, 03 Apr 2024 18:02:30 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: uecker 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=3D114574 --- Comment #6 from uecker at gcc dot gnu.org --- Hm, this is enough: const struct S * x; struct S {}; void f(const struct S **); The TYPE_CANONICAL of the pointer type depends on TYPE_CANONICAL of the tar= get. So it seems if I set it for completed types the new pointer get a new TYPE_CANONICAL while old pointers to the incomplete struct are not updated which then somehow triggers the assertion (and is wrong).=