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

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Sun Mar 15 12:42:15 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;
----------------
kparzysz wrote:

Braces here as well.

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


More information about the flang-commits mailing list