From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6289A3858D28; Sat, 23 Mar 2024 20:14:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6289A3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711224897; bh=sBymMkypk43SY7c313H6c5JKzHQFTYG317Rk8fL+OGE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eTWjE/MbqbYFGZSFnaNZXs86RSkW3FSwAjvtRLwtpznl6LXfqQfMyb+lgZxcZsYGR hCrTiIts1fvLG+QG1xTgtl+vwpRS1DUrp1DtdwG6E08pqiGQVddXN+W1CSjG5ACp4B XVKx8uVJ9QxcjtuY/+L2UguDXlpC4BBRmrdFibTk= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101478] [11/12/13/14 Regression] ICE with statement expression and offsetof like expression Date: Sat, 23 Mar 2024 20:14:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc priority keywords 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=3D101478 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[11/12/13/14 Regression] |[11/12/13/14 Regression] |ICE on invalid code: |ICE with statement |recompute_tree_invariant_fo |expression and offsetof |r_addr_expr |like expression Priority|P4 |P3 Keywords|error-recovery, |ice-on-valid-code |ice-on-invalid-code | --- Comment #4 from Andrew Pinski --- You can make this valid (maybe not runtime defined) GNU C code that ICEs in= the same way: ``` struct obj { int n; int l; }; int main() { (struct obj *)((char *)(__SIZE_TYPE__)({ 0; }) - (char *)&((struct obj *)0)->l); } ```=