From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE68E3858CDA; Fri, 24 Mar 2023 12:23:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE68E3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679660618; bh=GKAwO/NnaBfEcXAbIj/ZWfI32b24q0+TXR8lWRGWPb8=; h=From:To:Subject:Date:From; b=q4PXx8M5GBPlVRQQkkX90Jly5CO1iDAaoYn9yYkjOsN3jL3fYIjTPqePw6yoDlweT Spv38niRHE2lQP5j7+uREeL8ntBpGeAmd5dIodo0JiuLPB15+XfduaGjJWtz+kDbkm tBBlK7VyjCEbjy+qyb8x5NWA8lO1L6UeTtiDQyWo= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109274] New: ice in in_chain_p, at gimple-range-gori.cc:119 Date: Fri, 24 Mar 2023 12:23:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109274 Bug ID: 109274 Summary: ice in in_chain_p, at gimple-range-gori.cc:119 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This C++ code: float mulsignf_cb, mulsignf_t, mulsignf_bpa; int mulsignf___trans_tmp_1; float mulsignf() { mulsignf_cb =3D 0 * -(2.0f * mulsignf_bpa); mulsignf___trans_tmp_1 =3D mulsignf_cb !=3D mulsignf_cb ? 0 : mulsignf(); mulsignf_t =3D mulsignf_bpa; } when compiled by recent g++ trunk and flag -O2, does this: bug902.cc: In function =E2=80=98float mulsignf()=E2=80=99: bug902.cc:7:1: warning: no return statement in function returning non-void [-Wre turn-type] 7 | } | ^ during GIMPLE pass: vrp bug902.cc:3:7: internal compiler error: in in_chain_p, at gimple-range-gori.cc:1 19 3 | float mulsignf() { | ^~~~~~~~ 0x92e285 range_def_chain::in_chain_p(tree_node*, tree_node*) ../../trunk.year/gcc/gimple-range-gori.cc:119 0x1fd69f4 gori_compute::compute_operand_range(vrange&, gimple*, vrange cons= t&, t ree_node*, fur_source&, value_relation*) ../../trunk.year/gcc/gimple-range-gori.cc:667 The bug first seems to appear sometime from git hash g:454a4d5041f53cd1 to g:0963cb5fde158cce, a distance of 41 commits.=