From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B484A3857809; Thu, 1 Apr 2021 06:56:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B484A3857809 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/99849] ICE in expand_expr_real_1, at expr.c:11556 since r5-5407-g30d5d8c5189064c8 Date: Thu, 01 Apr 2021 06:56:29 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 06:56:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99849 --- Comment #2 from Richard Biener --- We're outputting the initializer of mlx5_ib_object_MLX5_IB_OBJECT_VAR which looks like {.cleanup=3D&<<< Unknown tree: compound_literal_expr extern const struct uverbs_obj_idr_type __compound_literal.0 =3D {.type=3D{.type_class=3D&uverbs_idr_class}}; >>>.type} The DECL_RTL of the COMPOUND_LITERAL_EXPR_DECL decl is (mem/u/c:DI (symbol_ref:DI ("__compound_literal.0.lto_priv.0") [flags 0x42] ) [7 __compound_literal.0+0 S8 A64]) The issue is that while we handle ADDR_EXPR of COMPOUND_LITERAL_EXPR specia= lly in a lot of places here we have it wrapped in a COMPONENT_REF. It somehow feels that some lowering is missing - it would be interesting to trace the non-LTO compile of this initializer.=