[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
Thu Mar 5 21:01:45 PST 2026


================

----------------
bonachea wrote:

I don't see any test coverage for a (non-allocatable) coarray declared in a module, or a (non-allocatable) `SAVE` coarray declared as a local variable inside a procedure (e.g. in the worst case by an internal subprogram of an external procedure).  In both cases, these coarray allocations should be performed during program initialization (as collective calls to `prif_allocate_coarray`, some time _after_ `prif_init` but _before_ starting to execute the main program). 

Are these cases covered yet, or is this future work?

Please either add test cases, or add `TODO`s indicating it's not yet implemented.

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


More information about the flang-commits mailing list