[flang-commits] [flang] [flang][OpenMP] Diagnose privatized array section reductions (PR #215997)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Sun Aug 16 23:50:20 PDT 2026
Saieiei wrote:
@MattPD but does [OpenMP 5.0 2.19.5.1](https://www.openmp.org/spec-html/5.0/openmpsu107.html#x140-5800002.19.5) make this particular reproducer unspecified? It says that for an array-section or array-element reduction, accesses outside the listed section/element have unspecified behavior. Here `a(1)` is outside `a(2:3)`, so this does not seem to demonstrate incorrect behavior for a defined case. Is there a reproducer where all accesses remain within the listed section?
https://github.com/llvm/llvm-project/pull/215997
More information about the flang-commits
mailing list