[llvm-branch-commits] [flang] [flang][OpenMP] Do not register DECLARE_REDUCTIONs in METADIRECTIVEs (PR #243868)
Krzysztof Parzyszek via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 19 12:48:30 PST 2026
================
@@ -837,6 +837,14 @@ void OmpStructureChecker::Leave(const parser::OmpMetadirectiveDirective &x) {
"The declarative form of the %s directive is not implemented yet and will be ignored"_warn_en_US,
parser::omp::GetUpperName(dirName.v, version));
}
+ } else if (InExecutionPart()) {
+ if (!hasDeclarative.empty()) {
+ context_
+ .Say(dirName.source,
+ "A %s in the execution part cannot have declarative variants"_err_en_US,
----------------
kparzysz wrote:
Also moved the testcase.
https://github.com/llvm/llvm-project/pull/243868
More information about the llvm-branch-commits
mailing list