================
@@ -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 ||
----------------
mjklemm wrote:
As far as I understand the code, this is the place where all the handling of
the implicit and explicit data-sharing checks are happening. So, this should
happen for all directives that allow for having data-sharing attribute clauses.
https://github.com/llvm/llvm-project/pull/120287
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits