[Bug fortran/124392] [OpenMP] Bogus ‘i’ not specified in enclosing ‘task’ for task with nested parallel with implicit private

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 7 09:29:20 GMT 2026


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
E.g. OpenMP 6.0 has [211/18]:
The loop-iteration variable in any affected loop of a loop or simd construct is
lastprivate.
and that comes earlier than
The loop-iteration variable in any affected loop of a loop-nest-associated
directive is
otherwise private.
and [211/3-5] says that first matching rule applies.


More information about the Gcc-bugs mailing list