[flang-commits] [flang] [flang][OpenMP] Fix construct privatization in default clause (PR #72510)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Mon Feb 5 12:23:50 PST 2024


luporl wrote:

> So, all OpenMP constructs that may take data-sharing attribute clauses may sort of have an implicit default data-sharing attribute or inherit from the outer scope. For instance, `parallel` uses the implicit default data-sharing attribute, while `critical` just uses what's coming from the outer scope.

OpenMP 4.5, subclause 2.15.1.1 lists the rules of implicit data-sharing attributes. In fact, some of them are missing in Flang, like that of `task`: https://github.com/llvm/llvm-project/issues/64480

https://github.com/llvm/llvm-project/pull/72510


More information about the flang-commits mailing list