[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
Tue Feb 4 03:12:23 PST 2025


tblah wrote:

> How does it work for array elements? Isn't there a similar issue?

It seems we just do reduction on the whole array, ignoring the indexing.

> Does this exclude array elements also?

I imagine it should do. gfortran and classic-flang don't allow it.

So does this sound okay to you:

1. I change this patch to deny derived type components for all standard versions
2. I do a followup patch denying array indexing

https://github.com/llvm/llvm-project/pull/125480


More information about the flang-commits mailing list