From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4CA6385841E; Sat, 18 May 2024 14:10:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4CA6385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716041408; bh=2DerOZ6i9O4ly8zj6i31Z73LEyX3GeTYIl8+ytKAzsE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=y5oCoRUC87AIOhYJ/o4YjFi5QaTB7qMH+mAla8e3Ht3TDaL2cGjwJa59Ro1B0xvwg TgddVGgxpVxAHDlMQ1U8lYl9diHSWNLgsQbJhTvnPRF4r/fpqJtgRfkh+baiLSrsHn 5do32/heGvO/QVNS9pUUwPnTMVMhkqcIlufED3BU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115143] [11/12/13/14/15 Regression] tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85 Date: Sat, 18 May 2024 14:10:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D115143 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7)=20 > Here is one which failed since GCC 10 (when __MIN support was added for > gimple FE): > ``` > signed __GIMPLE (ssa,startwith("phiopt")) > foo (signed a, unsigned b) > { > signed j; > signed _23; > signed _12; >=20 > __BB(2): > if (a_6(D) > 0) > goto __BB3; > else > goto __BB4; >=20 > __BB(3): > j_10 =3D __PHI (__BB2: b_11(D)); > _23 =3D __MIN (a_6(D), j_10); > goto __BB4; >=20 > __BB(4): > _12 =3D __PHI (__BB3: _23, __BB2: 0); > return _12; >=20 > } > ``` This testcase is buggy.=