From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63B633858400; Sat, 27 Nov 2021 09:10:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63B633858400 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/103451] New: crash at gcc/range-op.cc:1836 Date: Sat, 27 Nov 2021 09:10: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: 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: Sat, 27 Nov 2021 09:10:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103451 Bug ID: 103451 Summary: crash at gcc/range-op.cc:1836 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: int func_10_ptr_12; void func_10(long li_8)=20 { long *ptr_9 =3D &li_8; li_8 &=3D *ptr_9 / 0 ?: li_8; for (;;) func_10_ptr_12 &=3D 4 ? *ptr_9 : 4; } void func_9_s_8()=20 {=20 func_10(func_9_s_8);=20 } on recent gcc, does this: $ /home/dcb/gcc/results/bin/gcc -c -O2 bug775.c during IPA pass: inline bug775.c: At top level: bug775.c:14:1: internal compiler error: Segmentation fault 14 | } | ^ 0xdabcb9 crash_signal(int) ../../trunk.git/gcc/toplev.c:322 0x1c98f2f operator_div::wi_fold(irange&, tree_node*, generic_wide_int const&, generic_wide_int const&, generic_wide_int const&, generic_wide_int const&) const ../../trunk.git/gcc/range-op.cc:1836 The bug first seems to occur sometime between git hash 415f9ee404dc9e8a and 4a2007594cff78fb, a distance of 22 commits.=