================ @@ -2276,7 +2281,8 @@ void OmpAttributeVisitor::Post(const parser::Name &name) { if (Symbol * found{currScope().FindSymbol(name.source)}) { if (symbol != found) { name.symbol = found; // adjust the symbol within region - } else if (GetContext().defaultDSA == Symbol::Flag::OmpNone && + } else if ((HaveOpenMPDefaultNone || ---------------- kiranchandramohan wrote:
Would `HaveOpenMPDefaultNone` be set for those constructs where data-sharing is not allowed as well? https://github.com/llvm/llvm-project/pull/120287 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits