From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFF623857BA2; Sat, 30 Dec 2023 10:15:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFF623857BA2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703931322; bh=+HPrIux4FeVfzcE5RBiOy91e3jJnpkrMg1LXPF/PYVU=; h=From:To:Subject:Date:From; b=YjmiVGu1ljzFJA0TwtohhpAr99S677TuLr2fdkbGmoCgS4b8HbFRJntZwv6Txp5kJ QdK4zq0lDROERVhNLymo8frVrcwHzV33JIl8A1Ls6tcbTGsOGf3F/rGp620/Jvc+KD oHhv+P8mVtXZ2zDXQmpPs+J6ocGj2EptQGRIs+18= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113178] New: ice in find_uses_to_rename_use Date: Sat, 30 Dec 2023 10:15:20 +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: 14.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=3D113178 Bug ID: 113178 Summary: ice in find_uses_to_rename_use Product: gcc Version: 14.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++ source code: struct PixelWeight { int m_SrcStart; int m_Weights[]; }; struct CWeightTable { int *GetValueFromPixelWeight(PixelWeight *, int) const; }; char ContinueStretchHorz_dest_scan; struct CStretchEngine { bool ContinueStretchHorz(); CWeightTable m_WeightTable; }; int *CWeightTable::GetValueFromPixelWeight(PixelWeight *pWeight, int index) const { long __trans_tmp_1; if (index < pWeight->m_SrcStart) return __trans_tmp_1 ? &pWeight->m_Weights[pWeight->m_SrcStart] : nullp= tr; } bool CStretchEngine::ContinueStretchHorz() { { PixelWeight pPixelWeights; int dest_g_m; for (int j; j; j++) { int pWeight =3D *m_WeightTable.GetValueFromPixelWeight(&pPixelWeights= , j); dest_g_m +=3D pWeight; } ContinueStretchHorz_dest_scan =3D dest_g_m; } } when compiled by recent gcc trunk, does this: cvise $ ~/gcc/results.20231227.asan.ubsan/bin/g++ -c -O3 -w bug995.cc cvise $ ~/gcc/results.20231227.asan.ubsan/bin/g++ -c -O3 -w -march=3Dznver3 bug995.cc during GIMPLE pass: vect bug995.cc: In member function =E2=80=98bool CStretchEngine::ContinueStretch= Horz()=E2=80=99: bug995.cc:19:6: internal compiler error: Segmentation fault 19 | bool CStretchEngine::ContinueStretchHorz() { | ^~~~~~~~~~~~~~ 0x11e1b39 crash_signal(int) ../../trunk.20210101/gcc/toplev.cc:316 0x1381b98 find_uses_to_rename_use(basic_block_def*, tree_node*, bitmap_head= **, bitmap_head*) ../../trunk.20210101/gcc/tree-ssa-loop-manip.cc:414=