[flang-commits] [flang] [flang][OpenMP] Make static duration variables default to shared DSA (PR #142783)

Kajetan Puchalski via flang-commits flang-commits at lists.llvm.org
Tue Jun 10 09:17:59 PDT 2025


mrkajetanp wrote:

Very interesting, you're right, though I'm quite surprised it's hitting that code path.
I'd have expected it to bail out [here](https://github.com/llvm/llvm-project/blob/94c241614f491c0cd832614bde6130e315e53467/flang/lib/Semantics/resolve-directives.cpp#L2348) because 'a' in the test program is explicitly made private and should already have a DSA. But it does not seem to be the case when this runs. Unless this check is not supposed to cover this scenario at all?

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


More information about the flang-commits mailing list