From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA0623857C4C; Thu, 25 Mar 2021 23:31:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA0623857C4C From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99777] [11 Regression] ICE in build2, at tree.c:4869 with -O3 Date: Thu, 25 Mar 2021 23:31:37 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status target_milestone short_desc cc priority everconfirmed cf_reconfirmed_on 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 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: Thu, 25 Mar 2021 23:31:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99777 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Target Milestone|--- |11.0 Summary|ICE in build2, at |[11 Regression] ICE in |tree.c:4869 with -O3 |build2, at tree.c:4869 with | |-O3 CC| |jakub at gcc dot gnu.org Priority|P3 |P1 Ever confirmed|0 |1 Last reconfirmed| |2021-03-25 --- Comment #1 from Jakub Jelinek --- Started with r11-3705-gdae673abd37d400408959497e50fe1f3fbef5533 Testcase without any includes: template constexpr inline const T& min(const T& a, const T& b) { if (b < a) return b; return a; } template constexpr inline const T& max(const T& a, const T& b) { if (a < b) return b; return a; } extern int var_142; extern int a, c; long h; unsigned long long e; signed char d; extern short arr_323[][7][5][30]; void test(long long b, short f[][17][25][22][20]) { for (char i =3D 0; i < 7; i +=3D 3) for (unsigned char l =3D e; l < 5; l +=3D 2) { if (max(0LL, min(7LL, b))) for (bool j =3D 0; j < 1; j =3D b) { for (unsigned k =3D d; k < 20; k++) h =3D f[0][i][l][b][k]; for (int m =3D 0; m < 5; m++) arr_323[c][i][l][m] =3D 0; } for (int n =3D 0; n < 4; n +=3D a) var_142 =3D n; } }=