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

            Bug ID: 117499
           Summary: [15 Regression] Segfault ICE building 511.povray_r
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Building the benchmark from SPEC2017 runs into a segfault ICE on aarch64.
Reduced testcase:
double a();
int b, c;
void d(int e, int f) {
  int g, h;
  if (e == 0 && f == 0) {
    c = 0;
    for (;;) {
      switch (c) {
      case 0:
        h = f;
        g = a();
        break;
      case 2:
        h = a();
      }
      if (b)
        d(g, h);
    }
  }
}

Building with -O3:
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to