[flang-commits] [flang] [flang][OpenMP] Add `hostIsSource` paramemter to `copyHostAssociateVar` (PR #123162)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Mon Feb 3 06:27:20 PST 2025
mjklemm wrote:
> Indeed, I came across this too. My understanding is that this does not apply (and take this with a big grain of salt; I might be totally wrong) because before these rules, the spec says:
>
> ```
> Certain variables and objects have predetermined data-sharing attributes for the construct in which
> they are referenced. The **first matching rule** from the following list of predetermined data-sharing
> attribute rules applies for variables and objects that are referenced in a construct.
> ```
>
> The emphasis here is on "first matching rule". I might be reading this wrong though, hence asking @mjklemm if he has any input. If it needs to be `private`, I will work on that for sure.
That interpretation is correct. Out of the list of potentially matching rules that predetermine the DSA of a variable, it's the first match in the rule set that determines the DSA.
https://github.com/llvm/llvm-project/pull/123162
More information about the flang-commits
mailing list