https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67986
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is not valid OpenMP code. E.g. OpenMP 4.0, 2.7.1, p. 56, lines 1-3 says: The iteration count for each associated loop is computed before entry to the outermost loop. If execution of any associated loop changes any of the values used to compute any of the iteration counts, then the behavior is unspecified. Similar wording in other OpenMP standard versions.