From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0725A3853809; Sun, 18 Jul 2021 07:53:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0725A3853809 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101497] New: ice in type, at value-range.h:221 Date: Sun, 18 Jul 2021 07:53:24 +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: 12.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 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: Sun, 18 Jul 2021 07:53:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101497 Bug ID: 101497 Summary: ice in type, at value-range.h:221 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: char uc_1; int i_4, func_12_uli_6; void func_12() { int *ptr_8 =3D &func_12_uli_6; *ptr_8 =3D 0 >=3D 211 - uc_1 <=3D 0; i_4 %=3D 0; i_4 *=3D *ptr_8; } compiled by recent gcc trunk, does this: $ /home/dcb/gcc/results/bin/gcc -c -O2 -w bug737.c=20 during GIMPLE pass: evrp bug737.c: In function =E2=80=98func_12=E2=80=99: bug737.c:8:1: internal compiler error: in type, at value-range.h:221 8 | } | ^ 0x884da8 irange::type() const ../../trunk.git/gcc/value-range.h:221 0x884da8 fold_using_range::range_of_cond_expr(irange&, gassign*, fur_source= &) ../../trunk.git/gcc/gimple-range-fold.cc:1114 0x1b0e0ac fold_using_range::fold_stmt(irange&, gimple*, fur_source&, tree_n= ode* ) ../../trunk.git/gcc/gimple-range-fold.cc:521 0x1b00091 gimple_ranger::fold_range_internal(irange&, gimple*, tree_node*) ../../trunk.git/gcc/gimple-range.cc:154 Bug first seems to occur sometime between git hash 7466a0a5d8d536ab and 94ba897be8b59ef5=