[flang-commits] [flang] [llvm] [Flang] Adding lowering for the allocation and deallocation of coarrays (PR #182110)
Dan Bonachea via flang-commits
flang-commits at lists.llvm.org
Tue Mar 17 19:17:10 PDT 2026
================
----------------
bonachea wrote:
Variables `a`, `b` and `c` above are all non-ALLOCATABLE coarrays that are implicitly SAVE because they are declared in the scoping unit of the main program. This case *might* happen to work, because the generated allocation calls presumably run before the executable statements of the main program. However if these had instead been declared in the scoping unit of a module or submodule, then I'm pretty sure they'd be outside the realm of what this PR is capable of correctly allocating at startup.
Could we please add a test case for a non-ALLOCATABLE coarray declared as a module variable?
https://github.com/llvm/llvm-project/pull/182110
More information about the flang-commits
mailing list