================
@@ -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,
----------------
chichunchen wrote:

Should this part moved to https://github.com/llvm/llvm-project/pull/243867?

https://github.com/llvm/llvm-project/pull/243868
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to