[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
Mon Feb 3 04:47:03 PST 2025
kiranchandramohan wrote:
This is OK up to OpenMP 5.1.
A variable that is part of another variable, with the exception of array elements cannotappear in a reduction clause.
OpenMP 5.2 onwards has the following:
A list item that appears in a reduction clause must be definable.
Is it better to emit the semantics error for 5.1 and before and the lowering error for 5.2 and later standards?
https://github.com/llvm/llvm-project/pull/125480
More information about the flang-commits
mailing list