public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2
@ 2023-09-21  7:09 shaohua.li at inf dot ethz.ch
  2023-09-21  7:22 ` [Bug tree-optimization/111514] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-09-21  7:09 UTC (permalink / raw)
  To: gcc-bugs

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.
$

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-17 12:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21  7:09 [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2 shaohua.li at inf dot ethz.ch
2023-09-21  7:22 ` [Bug tree-optimization/111514] " pinskia at gcc dot gnu.org
2023-09-21  8:15 ` shaohua.li at inf dot ethz.ch
2023-10-17 12:58 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).