[flang-commits] [flang] [flang][OpenMP] Skip implicit typing for DeclareSimdConstruct (PR #142415)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Tue Jun 3 06:00:52 PDT 2025


================
@@ -1513,8 +1513,12 @@ class OmpVisitor : public virtual DeclarationVisitor {
 
   bool Pre(const parser::OpenMPDeclareSimdConstruct &x) {
     AddOmpSourceRange(x.source);
+    SkipImplicitTyping(true);
     return true;
   }
+  void Post(const parser::OpenMPDeclareSimdConstruct &x) {
+    SkipImplicitTyping(false);
----------------
kiranchandramohan wrote:

Are these specific ones required if you are doing the same for `OpenMPDeclarativeConstruct`?

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


More information about the flang-commits mailing list