[flang-commits] [clang] [flang] [Flang][OpenMP] Add -fopenmp-default-none command line flag (PR #120287)

Michael Klemm via flang-commits flang-commits at lists.llvm.org
Wed Dec 18 09:00:46 PST 2024


================
@@ -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:

Oh boy...  Yes, I do not like these 20th century features. :-)  Thanks for catching this!

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


More information about the flang-commits mailing list