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

            Bug ID: 83365
           Summary: ice in interpret_rhs_expr, at
                    tree-scalar-evolution.c:1775
           Product: gcc
           Version: 8.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 following C code, when compiled by recent gcc trunk and compiler flag -O3,
does this:

during GIMPLE pass: linterchange
hack/hack.bones.c: In function ‘getbones’:
hack/hack.bones.c:154:1: internal compiler error: in interpret_rhs_expr, at
tree-scalar-evolution.c:1775
0xead827 interpret_rhs_expr
        ../../trunk/gcc/tree-scalar-evolution.c:1775
0xea9208 interpret_expr
        ../../trunk/gcc/tree-scalar-evolution.c:1991
0xea9208 analyze_scalar_evolution_1
        ../../trunk/gcc/tree-scalar-evolution.c:2026
0xeaa611 analyze_scalar_evolution(loop*, tree_node*)
        ../../trunk/gcc/tree-scalar-evolution.c:2113

The problem seems to occur between revisions 255402 and 255516.

C source code is

struct {
  unsigned : 1;
  unsigned a : 1
} b[];
c;
d() {
  int e;
  for (; e; e++) {
    c = 0;
    for (; c < 2; c++)
      b[c].a = 0;
  }
}

Reply via email to