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

            Bug ID: 111514
           Summary: [14 Regression] ICE: in lower_bound, at
                    value-range.h:1078 since r14-3644-g1aceceb1e2
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shaohua.li at inf dot ethz.ch
                CC: guojiufu at gcc dot gnu.org
  Target Milestone: ---

gcc at -O3 crashes on the following testcase.

Bisected to r14-3644-g1aceceb1e2

Compiler explorer: https://godbolt.org/z/65G54cY8Y

$ cat a.c
unsigned a;
int b, f, g, h;
int e[1];
void j() {
  int k;
  b = 0;
  for (; k;)
    if (f)
      if (h)
        b ^= 0 <= 0;
}
void i() {
  j();
  for (; a; ++a) {
    {
      int c = b, d;
      if (b >= 'z' && d)
        c = 5;
      g = c;
    }
    *e = g;
  }
}

int main() {}
$
$ gcc -O3 a.c
during GIMPLE pass: vrp
a.c: In function ā€˜iā€™:
a.c:12:6: internal compiler error: in lower_bound, at value-range.h:1078
   12 | void i() {
      |      ^
0x7fa1dcb81082 __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$

Reply via email to