https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109695

            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=54966&action=edit
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 <https://gcc.gnu.org/bugs/> for instructions.
$

It was fine yesterday:

$ ~/gcc/results.20230501.asan.ubsan/bin/gcc -c -w bug914.cc
$ 

Here is a stack backtrace of the crash:

#0  0x0000000001f5328b in gimple_ranger::range_of_expr (this=0x36e4d50, r=..., 
    expr=0x7fffe0369990, stmt=0x7fffe8cd6688)
    at ../../trunk.year/gcc/gimple-range.cc:87
#1  0x0000000001f62f96 in fold_using_range::range_of_range_op (
    this=this@entry=0x7ffffc01e100, r=..., handler=..., src=...)
    at ../../trunk.year/gcc/gimple-range-fold.cc:559
#2  0x0000000001f61d4e in fold_using_range::fold_stmt (this=0x7ffffc01e100, 
    r=..., s=0x7fffe8cd6688, src=..., name=0x7fffe0369cf0)
    at ../../trunk.year/gcc/gimple-range-fold.cc:490
#3  0x0000000001f54220 in gimple_ranger::fold_range_internal (this=0x36e4d50, 
    r=..., s=0x7fffe8cd6688, name=<optimized out>)
    at ../../trunk.year/gcc/gimple-range.cc:257

Reply via email to