[flang-commits] [flang] [flang][OpenMP] Catch threadprivate common block vars that appear in equivalence (PR #127642)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Fri Feb 6 05:57:16 PST 2026
kparzysz wrote:
This sounds very familiar. @mjklemm and I ran into this last year. We discussed allowing this, and the problem was with the implications that this would have. For example, is the equivalenced object also threadprivate, what if it is a derived type component or an array element, etc. We would need to unofficially extend the OpenMP spec and maintain that extension.
Another problem is that it's not clear what will happen if this situation is simply not flagged as an error. The rest of the compiler is going to do something, but it's not clear if that will be the expected result.
https://github.com/llvm/llvm-project/pull/127642
More information about the flang-commits
mailing list