[flang-commits] [flang] [Flang][OpenMP] Permit THREADPRIVATE variables in EQUIVALENCE statements (PR #186696)

Michael Klemm via flang-commits flang-commits at lists.llvm.org
Sun Mar 15 12:47:20 PDT 2026


================
@@ -3250,6 +3244,30 @@ void OmpAttributeVisitor::ResolveOmpDesignator(
   }
 }
 
+void OmpAttributeVisitor::PropagateOmpFlagToEquivalenceSet(
+    const Symbol &symbol, Symbol::Flag ompFlag) {
+  // Find the equivalence set containing this symbol
+  if (const EquivalenceSet *eqSet = FindEquivalenceSet(symbol)) {
+    // Propagate the flag to all symbols in the equivalence set
+    for (const EquivalenceObject &eqObj : *eqSet) {
+      Symbol &eqSymbol = eqObj.symbol;
----------------
mjklemm wrote:

Done.

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


More information about the flang-commits mailing list