From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 120A53857C65; Fri, 8 Mar 2024 03:43:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 120A53857C65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709869434; bh=Hs6vXL4alYjWbUzlB3G73ynUhyI9EOoKbBieJo4S/SE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VoOIOeCXFmeC1IncrXHnB0IoNv1jIF3qNpKlQ3CwkxqgAdQsYlGDlDRfg8aJIP1fc 2ApsKy0KqblL0t0hXGTceZZetdVpdGyL47hNn0sg+jhO+BHIFD8OWPXXBkKIqwJWN3 ULk1h9IQolUefLc75ao0bb1sEzZFGW/MEHcGayB0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110682] [12/13/14 Regression] ICE: internal compiler error: in gimplify_expr after error Date: Fri, 08 Mar 2024 03:43:53 +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: 14.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 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=3D110682 --- Comment #3 from Andrew Pinski --- This fixes the ICE: ``` [apinski@xeond2 gcc]$ git diff diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc index 6ebca964cb2..0f43324fb35 100644 --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -17681,7 +17681,11 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, save_expr =3D *expr_p; /* Die, die, die, my darling. */ - if (error_operand_p (save_expr)) + if (error_operand_p (save_expr) + /* The above strip useless type conversion might not strip out + a conversion from an error so handle that case here. */ + || (TREE_CODE (save_expr) =3D=3D NON_LVALUE_EXPR + && error_operand_p (TREE_OPERAND (save_expr, 0)))) { ret =3D GS_ERROR; break; ``` I will submit it tomorrow once I test it fully.=