From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 950493858D20; Tue, 2 May 2023 09:57:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 950493858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683021458; bh=PYUkiEGa+2VHOfGj/gNigqCkn1h2EFHwszHrkcjwlEc=; h=From:To:Subject:Date:From; b=i8YIDvSSznQPMHV1wtgSsB0k2zqIFAHC5UGYH/bfOlR81zc1oQpZGIWSCZivoUjyf KF/seapKLlCuqRhtmaw8bC6ae+UhD78LSX8j832da5DNhRGNgMl+hw7mhyHuPmIIeo 02JdNgBAf9LNbPfEgQHVSmVsyzmYrVa6eVxg0A+k= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109695] New: crash in gimple_ranger::range_of_expr Date: Tue, 02 May 2023 09:57:37 +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: 13.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 attachments.created 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=3D109695 Bug ID: 109695 Summary: crash in gimple_ranger::range_of_expr Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 54966 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54966&action=3Dedit gzipped C++ source code The attached C++ code does this when compiled by today's gcc: $ ~/gcc/results.20230502.asan.ubsan/bin/gcc -c -w bug914.cc gcc: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. $ It was fine yesterday: $ ~/gcc/results.20230501.asan.ubsan/bin/gcc -c -w bug914.cc $=20 Here is a stack backtrace of the crash: #0 0x0000000001f5328b in gimple_ranger::range_of_expr (this=3D0x36e4d50, r= =3D...,=20 expr=3D0x7fffe0369990, stmt=3D0x7fffe8cd6688) at ../../trunk.year/gcc/gimple-range.cc:87 #1 0x0000000001f62f96 in fold_using_range::range_of_range_op ( this=3Dthis@entry=3D0x7ffffc01e100, r=3D..., handler=3D..., src=3D...) at ../../trunk.year/gcc/gimple-range-fold.cc:559 #2 0x0000000001f61d4e in fold_using_range::fold_stmt (this=3D0x7ffffc01e10= 0,=20 r=3D..., s=3D0x7fffe8cd6688, src=3D..., name=3D0x7fffe0369cf0) at ../../trunk.year/gcc/gimple-range-fold.cc:490 #3 0x0000000001f54220 in gimple_ranger::fold_range_internal (this=3D0x36e4= d50,=20 r=3D..., s=3D0x7fffe8cd6688, name=3D) at ../../trunk.year/gcc/gimple-range.cc:257=