[flang-commits] [flang] [flang][OpenMP] Fix host-associated user-defined operator reduction (PR #207413)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Sun Jul 5 00:05:31 PDT 2026


https://github.com/Saieiei approved this pull request.

LGTM, thanks. I verified that the old operator-owner lookup rejects this case with `Invalid reduction operator`, while the new clause-scope lookup finds the local `declare reduction` and the new lowering test passes.

Optional: a small `flang/test/Semantics/OpenMP` `-fsyntax-only` companion test could make the semantic regression coverage more direct, but the current Lower test is already a valid guard since it exercises semantics before lowering.


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


More information about the flang-commits mailing list