From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B81B33858D35; Wed, 29 Dec 2021 12:06:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B81B33858D35 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103856] New: ICE during GIMPLE pass: hardcmp since r12-4759-g95bb87b2458bfab4 Date: Wed, 29 Dec 2021 12:06:37 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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 cc 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: Wed, 29 Dec 2021 12:06:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103856 Bug ID: 103856 Summary: ICE during GIMPLE pass: hardcmp since r12-4759-g95bb87b2458bfab4 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: aoliva at gcc dot gnu.org Target Milestone: --- The following fails: $ cat ice.ii struct S { S(float); S(); operator float(); ~S() {} }; int main() { S s_arr[]{2}; S var1; if (var1) ; } $ g++ -Og -fnon-call-exceptions -fsignaling-nans -fharden-compares -c ice.ii ice.ii: In function =E2=80=98int main()=E2=80=99: ice.ii:9:1: error: missing =E2=80=98PHI=E2=80=99 def 9 | main() { | ^~~~ _5 =3D PHI <&MEM [(void *)&s_arr + 1B](4), &MEM [(void *)&s_arr + 1B](2), &MEM [(void *)&s_arr + 1B](3), (5)> during GIMPLE pass: hardcmp ice.ii:9:1: internal compiler error: verify_gimple failed 0x1289035 verify_gimple_in_cfg(function*, bool) /home/marxin/Programming/gcc/gcc/tree-cfg.c:5578 0x114f4ee execute_function_todo /home/marxin/Programming/gcc/gcc/passes.c:2084 0x114fb0b execute_todo /home/marxin/Programming/gcc/gcc/passes.c:2138 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=