[flang-commits] [flang] [Flang][OpenMP] DEFAULT(NONE) error checking on implicit references (PR #182214)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Mon Mar 2 08:54:52 PST 2026


================
@@ -2826,6 +2828,9 @@ void OmpAttributeVisitor::CreateImplicitSymbols(const Symbol *symbol) {
       }
     }
 
+    checkDefaultNone = checkDefaultNone |
+        (dsa.none() && dirContext.defaultDSA == Symbol::Flag::OmpNone);
----------------
luporl wrote:

nit: it would be easier to read if this statement was right before the `if (checkDefaultNone)` block.

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


More information about the flang-commits mailing list