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

            Bug ID: 118874
           Summary: ICE in copy_rtx, at rtl.cc:372
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc-sun-solaris2.11

The new g++.dg/coroutines/range-for2.C testcase causes an ICE on 64-bit
Solaris/SPARC (32-bit-default compiler with -m64):

+FAIL: g++.dg/coroutines/range-for2.C (internal compiler error: in copy_rtx, at
rtl.cc:372)
+FAIL: g++.dg/coroutines/range-for2.C (test for excess errors)
+UNRESOLVED: g++.dg/coroutines/range-for2.C compilation failed to produce
executable

during RTL pass: expand
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/coroutines/range-for2.C: In
function ‘C bar()’:
/vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/coroutines/range-for2.C:75:1:
internal compiler error: in copy_rtx, at rtl.cc:372
0x2494727 internal_error(char const*, ...)
        /vol/gcc/src/hg/master/local/gcc/diagnostic-global-context.cc:517
0x248067f fancy_abort(char const*, int, char const*)
        /vol/gcc/src/hg/master/local/gcc/diagnostic.cc:1722
0x13ecc23 copy_rtx(rtx_def*)
        /vol/gcc/src/hg/master/local/gcc/rtl.cc:372
0xeff5bf adjust_address_1(rtx_def*, machine_mode, poly_int<1u, long long>, int,
int, int, poly_int<1u, long long>)
        /vol/gcc/src/hg/master/local/gcc/emit-rtl.cc:2398
0xf642d7 store_field
        /vol/gcc/src/hg/master/local/gcc/expr.cc:8355
0xf5e0eb expand_assignment(tree_node*, tree_node*, bool)
        /vol/gcc/src/hg/master/local/gcc/expr.cc:6343
0xf5e0eb expand_assignment(tree_node*, tree_node*, bool)
        /vol/gcc/src/hg/master/local/gcc/expr.cc:5980
0xdd37e7 expand_gimple_stmt_1
        /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:4283
0xdd37e7 expand_gimple_stmt
        /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:4364
0xdd48ab expand_gimple_basic_block
        /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:6427
0xdd724b execute
        /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:7176

Reply via email to