https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85313
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jun 25 17:47:12 2018 New Revision: 262095 URL: https://gcc.gnu.org/viewcvs?rev=262095&root=gcc&view=rev Log: Backported from mainline 2018-04-10 Jakub Jelinek <ja...@redhat.com> PR fortran/85313 * openmp.c (resolve_omp_do): Remove bogus if (j < i) break;. (resolve_oacc_nested_loops): Likewise. Formatting fix. * gfortran.dg/gomp/pr85313.f90: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr85313.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/openmp.c branches/gcc-6-branch/gcc/testsuite/ChangeLog