[flang-commits] [flang] [flang][OpenMP][Semantics] Don't allow reduction of derived type components (PR #125480)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Tue Feb 4 07:16:59 PST 2025
kiranchandramohan wrote:
> > I am not 100% sure about this since previous versions explicitly allowed array elements. It might be worth asking a question to the OpenMP committee.
>
> OpenMP 6.0 clarifies that array elements are allowed on the clause.
>
> "The list items that appear in a reduction clause or an induction clause may include array sections and array elements." (247:3-4)
Thanks @kkwli. Would you know why derived type members are not allowed?
https://github.com/llvm/llvm-project/pull/125480
More information about the flang-commits
mailing list