From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E2B1388C02B; Wed, 2 Sep 2020 14:02:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E2B1388C02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599055321; bh=SoMJs54aAbVrG9F3NB3GuUGh3zvI1TRyA1kWM5dDyV0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YnPMK6/4NoQ2V6MBwa3wRenH3R7XZCM+I6SH3XgxnyXxoUCpYYuL4CMKPxQsjTLpG WjvQXbsB0GCvvbCs3ajoB9SZQxoCEz6x2DbsOkt8mT0yjOFwQnVvYyE+Y2KGfst1W2 QTyK+T/EfeYOAF/vK0VkwHRGWY05bpc2asp4evVg= From: "acsawdey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96791] ICE in convert_mode_scalar, at expr.c:412 Date: Wed, 02 Sep 2020 14:02:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: acsawdey at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: acsawdey 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: Wed, 02 Sep 2020 14:02:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96791 --- Comment #8 from acsawdey at gcc dot gnu.org --- Another small test case, reduced from my compile failure of c/c-typeck.c and modified to provoke truncation from POImode to various other modes: typedef int *a; struct b { a ba; }; enum c { c1=3D1 }; struct e { union eu { char f_char; short f_short; int f_int; long f_long; int *f_ptr; long long f_ll; } u; c g; a h; b i; }; a d(bool, bool, bool); e j(int, e, bool, bool); void k() { int l; for (;;) { e expr; l =3D sizeof(struct e); expr =3D j(l, expr, true, false); d(expr.u.f_char, false, __null); d(expr.u.f_short, false, __null); d(expr.u.f_int, false, __null); d(expr.u.f_long, false, __null); d(expr.u.f_ptr, false, __null); d(expr.u.f_ll, false, __null); } }=