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

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The problem here is that there is an aux variable ('i.2', internally
OMP_FOR_ORIG_DECLS) in Fortran - and while that gets set to the start value,
the actually used variable isn't:

              integer(kind=4) i.2;
              integer(kind=4) i;

              n.7 = n;
              m.8 = m;
              i.2 = n.7;
              #pragma omp for lastprivate(i) nowait private(i.2)
              for (i.2 = n.7; i.2 >= m.8; i.2 = i.2 + -2)
                i = i.2;
                ...

Cross ref:
https://github.com/OpenMP-Validation-and-Verification/OpenMP_VV/issues/906

Reply via email to