[flang-commits] [flang] [flang][OpenMP][Semantics] Don't allow reduction of derived type components (PR #125480)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Feb 3 05:56:11 PST 2025
tblah 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?
Well spotted. I will do that.
https://github.com/llvm/llvm-project/pull/125480
More information about the flang-commits
mailing list