[flang-commits] [flang] [flang][OpenMP] Diagnose task reduction array sections and elements (PR #215997)
via flang-commits
flang-commits at lists.llvm.org
Tue Aug 25 12:18:40 PDT 2026
================
@@ -2407,6 +2523,8 @@ static void genParallelClauses(
cp.processProcBind(clauseOps);
cp.processReduction(loc, clauseOps, reductionObjects);
+ checkTaskModifierPartialArrayReduction(loc, semaCtx, clauseOps.reductionMod,
----------------
MattPD wrote:
A single `reduction` clause with the `task` modifier on a user-defined reduction array element now emits the intended diagnostic on all four constructs.
https://github.com/llvm/llvm-project/pull/215997
More information about the flang-commits
mailing list