[flang-commits] [flang] [flang][OpenMP] Properly use GetAllowedElements (PR #229523)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Sat Oct 17 20:34:02 PDT 2026
================
@@ -49,6 +49,16 @@ static llvm::omp::ModifierSets GetSets(
return desc.getModifierSets(version);
}
+template <typename DescriptorTy>
+static auto GetAllowedElements(
----------------
Saieiei wrote:
Could you add a small Semantics test with `-fopenmp-version=61`? It could check that `map(always, to: x)` and `defaultmap(tofrom: scalar)` have no version warnings, and that `defaultmap(tofrom: scalar, aggregate)` diagnoses the repeated modifier.
https://github.com/llvm/llvm-project/pull/229523
More information about the flang-commits
mailing list