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

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Missed to list the PR in the commit :-(

* OpenMP 4.5 patch which rejects this is the following:
https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551338.html
and https://gcc.gnu.org/g:57dd9f3bfca8bb752c630431dc033c761e2ad382 (= r11-2553)

→ FIXED for OpenMP (4.5)
-------------
Tue, 4 Aug 2020 16:17:53 +0000 (18:17 +0200)
Fortran/OpenMP: Fix detecting not perfectly nested loops

gcc/fortran/ChangeLog:

* openmp.c (resolve_omp_do): Detect not perfectly
nested loop with innermost collapse.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/collapse1.f90: Add dg-error.
* gfortran.dg/gomp/collapse2.f90: New test.
-------------


TODO:

* OpenMP 5.x permits this (see also review comment)

* OpenACC: Still needs to be rejected

Reply via email to