[flang-commits] [flang] [Flang][OpenMP] Fixed semantic error when list item with a private da… (PR #109775)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Oct 9 03:24:10 PDT 2024
tblah wrote:
The first restriction on the allocate clause listed [here](https://www.openmp.org/spec-html/5.2/openmpse39.html#x118-1230006.6) is
> For any list item that is specified in the allocate clause on a directive other than the allocators directive, a data-sharing attribute clause that may create a private copy of that list item must be specified on the same directive.
I think the data sharing attribute clause referred to here is `task_reduction` (which makes sense with `allocate` because it will make copies). I don't think we can apply it to data-sharing attribute clauses on a different directive.
Did your patch originate from a real application containing code accepted by other compilers?
https://github.com/llvm/llvm-project/pull/109775
More information about the flang-commits
mailing list