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

            Bug ID: 97359
           Summary: ice in logical_combine, at gimple-range-gori.cc:754
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

The attached C code, when compiled by recent gcc trunk
and compiler flag -O2, does this:

$ ../results/bin/gcc -c -O2 -w bug651.c
during GIMPLE pass: evrp
bug651.c: In function ‘func_14’:
bug651.c:12278:1: internal compiler error: in logical_combine, at
gimple-range-gori.cc:754
12278 | }
      | ^
0x18d8f56 gori_compute::logical_combine(irange&, tree_code, irange const&,
tf_range const&, tf_range const&)
        ../../trunk.git/gcc/gimple-range-gori.cc:754
0x18da9e2 gori_compute_cache::cache_stmt(gimple*)
        ../../trunk.git/gcc/gimple-range-gori.cc:1314
0x18da6c4 gori_compute_cache::compute_operand_range(irange&, gimple*, irange
const&, tree_node*)
        ../../trunk.git/gcc/gimple-range-gori.cc:1279
0x18d881e gori_compute::compute_operand1_range(irange&, gimple*, irange const&,
tree_node*)

I'll have a go at reducing the code.

Reply via email to