From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 978133851C25; Sun, 19 Jun 2022 05:22:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 978133851C25 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106027] New: ICE: 'verify_gimple' failed (error: mismatching comparison operand types) Date: Sun, 19 Jun 2022 05:22:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sun, 19 Jun 2022 05:22:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106027 Bug ID: 106027 Summary: ICE: 'verify_gimple' failed (error: mismatching comparison operand types) Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 13.0.0 20220612 snapshot (g:add1adaa17a294ea25918ffb4fdd40f115362632) I= CEs when compiling the following testcase w/ -O1: int foo (unsigned int x, int y) { return x <=3D (((y !=3D y) < 0) ? y < 1 : 0); } % gcc-13.0.0 -O1 -c lxx02x06.c lxx02x06.c: In function 'foo': lxx02x06.c:2:1: error: mismatching comparison operand types 2 | foo (unsigned int x, int y) | ^~~ unsigned int int _1 =3D x <=3D 0; lxx02x06.c:2:1: internal compiler error: 'verify_gimple' failed 0xf2b0cd verify_gimple_in_seq(gimple*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220612/work/gcc-13-20220612/gcc/tr= ee-cfg.cc:5217 0xc0fb85 gimplify_body(tree_node*, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220612/work/gcc-13-20220612/gcc/gi= mplify.cc:16543 0xc0fd4c gimplify_function_tree(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220612/work/gcc-13-20220612/gcc/gi= mplify.cc:16614 0xa26c47 cgraph_node::analyze() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220612/work/gcc-13-20220612/gcc/cg= raphunit.cc:676 0xa297a7 analyze_functions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220612/work/gcc-13-20220612/gcc/cg= raphunit.cc:1241 0xa2a44d symbol_table::finalize_compilation_unit() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220612/work/gcc-13-20220612/gcc/cg= raphunit.cc:2501=