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

            Bug ID: 81578
           Summary: [8 Regression] ICE in omp_reduction_init_op
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-8.0.0-alpha20170723 snapshot ICEs when compiling the following snippet w/
-O1 (-O2, -O3, -Ofast) -ftree-parallelize-loops=2:

int
j4 (int q3, int fk, int ty)
{
  while (ty != 0)
    {
      q3 *= (fk < 0);
      ++ty;
    }

  return q3;
}

% gcc-8.0.0-alpha20170723 -O1 -ftree-parallelize-loops=2 -c gpmoajjd.c
during GIMPLE pass: parloops
gpmoajjd.c: In function 'j4':
gpmoajjd.c:2:1: internal compiler error: in omp_reduction_init_op, at
omp-low.c:3417
 j4 (int q3, int fk, int ty)
 ^~

Reply via email to