[llvm-branch-commits] [flang] [flang][OpenMP] Improve diagnosing invalid operators in DECLARE_REDUCTION (PR #232353)
Krzysztof Parzyszek via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 21 06:59:10 PDT 2026
================
@@ -772,6 +772,19 @@ void OmpStructureChecker::Enter(const parser::OmpMetadirectiveDirective &x) {
}
void OmpStructureChecker::Leave(const parser::OmpMetadirectiveDirective &) {
+ // Perform semantic checks on declarative variants.
+ if (!partStack_.empty() && partStack_.back() == PartKind::SpecificationPart) {
+ OmpVariantMatchContext matchContext{context_};
+ for (const MetadirectiveLoopVariant &variant : metadirectiveLoopVariants_) {
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/232353
More information about the llvm-branch-commits
mailing list