From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5A473858D3C; Mon, 27 Dec 2021 09:15:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5A473858D3C From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103842] New: [12 regression] ICE on ilmbase-2.5.7: during RTL pass: expand Date: Mon, 27 Dec 2021 09:15:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox 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 bug_severity priority component assigned_to reporter target_milestone cf_gcctarget 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: Mon, 27 Dec 2021 09:15:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103842 Bug ID: 103842 Summary: [12 regression] ICE on ilmbase-2.5.7: during RTL pass: expand Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Target: x86_64-unknown-linux-gnu Noticed new ICE on this week's gcc snapshot on ilmbase-2.5.7. Here is minim= ized source: void abs(float *); struct Matrix33 { float x[3][3]; float *operator[](int i) { return x[i]; } Matrix33(); Matrix33(float f, float g) { x[1][0] =3D x[1][1] =3D x[1][2] =3D f; x[2][0] =3D g; } void equalWithAbsError(); Matrix33 inverse() { Matrix33 s(x[1][2] - x[1][2], x[1][1] - x[1][1]); float r =3D s[2][0]; if (r) for (int i =3D 0; i < 3; ++i) for (int j =3D 0; j < 3; ++j) s[i][j] /=3D r; for (int i =3D 0;;) { float *__trans_tmp_2 =3D s[i]; abs(__trans_tmp_2); } } }; void __assert_fail() { Matrix33 m, inv1 =3D m.inverse(), ident1 =3D inv1; ident1.equalWithAbsError(); } $ g++-12.0.0 -O3 -c bug.cpp.cpp during RTL pass: expand bug.cpp.cpp: In function 'void __assert_fail()': bug.cpp.cpp:27:5: internal compiler error: Segmentation fault 27 | } | ^ 0x21196c6 internal_error(char const*, ...) ???:0 $ g++-12.0.0 -v Using built-in specs. COLLECT_GCC=3D/nix/store/hw64v14l9lzircg596kmj1bjiy76wcih-gcc-12.0.0/bin/g++ COLLECT_LTO_WRAPPER=3D/nix/store/hw64v14l9lzircg596kmj1bjiy76wcih-gcc-12.0.= 0/libexec/gcc/x86_64-unknown-linux-gnu/12.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20211226 (experimental) (GCC) Also attaching the unminimized preprocessed file in case it introduced unrelated uninitialized values as `bug.cpp.cpp.orig`.=