From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9ECD93858C50; Sat, 22 Jul 2023 16:36:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ECD93858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690043780; bh=HL0CTAHPTzkQkK0iKdUThbIQ8Gky52XxA4JBAVMN/VI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EYhdTujD/vojBZUZ5wtn+WAuIZSb22aIjWMf70eH3/W5lKYitXCtZtAL8BAQ7sRxk h9SYF+WpyiypceuExBxpvhOaP5Zu0Lo73zJVMStdqXNrRS+6MnXD3zQmx7q9cq1dGs M5iNg/+8Dz1m5kNzDvOq5zyXrib3Y6WnQNTMvJhU= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110766] [14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in gimple_phi_arg_def_from_edge, at gimple.h:4699 Date: Sat, 22 Jul 2023 16:36:20 +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: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D110766 --- Comment #3 from David Binderman --- Reduced C++ code seems to be: template struct _Base_bitset {=20 unsigned long _M_w[_Nw]; unsigned long &_M_getword() { return _M_w[0]; } }; struct bitset : _Base_bitset<0> {=20 int _Unchecked_set___val; void set() { long __trans_tmp_4; if (_Unchecked_set___val) _M_getword() |=3D __trans_tmp_4; } void reset() { long __trans_tmp_5, __trans_tmp_3; __trans_tmp_5 =3D 1 << __trans_tmp_3; _M_getword() &=3D __trans_tmp_5; } }; using PlayBehaviourSet =3D bitset; struct CSoundFile { PlayBehaviourSet m_playBehaviour; void UpgradeModule(); }; void CSoundFile::UpgradeModule() { for (int i =3D 0; i < 5; i++) { m_playBehaviour.set(); m_playBehaviour.reset(); } } cvise $ ~/gcc/results/bin/gcc -c -O2 bug943.cc during GIMPLE pass: sccp bug943.cc: In member function =E2=80=98void CSoundFile::UpgradeModule()=E2= =80=99: bug943.cc:23:6: internal compiler error: in gimple_phi_arg_def_from_edge, at gimple.h:4699 23 | void CSoundFile::UpgradeModule() { | ^~~~~~~~~~ 0x123f7dc final_value_replacement_loop(loop*) ../../trunk.year/gcc/tree-scalar-evolution.cc:0 0x12fdfb7 (anonymous namespace)::pass_scev_cprop::execute(function*) ../../trunk.year/gcc/tree-ssa-loop.cc:411 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. cvise $=