[flang-commits] [flang] [Flang][MIF] Allocation of NON-ALLOCATABLE SAVE coarray (PR #205847)

Dan Bonachea via flang-commits flang-commits at lists.llvm.org
Wed Jul 8 12:53:01 PDT 2026


bonachea wrote:

>  I have compiled a Fortran program with non-allocatable save coarrays with this branch and linked with Caffeine. The program unfortunately hangs and it appears, from dumping the MLIR, that you may be missing a call to `prif_init` before the first `prif_allocate_coarray`, which is prohibited by PRIF.

@JDPailleux The program that Kate mentions is Caffeine's [naive-multi-image test](https://github.com/BerkeleyLab/caffeine/blob/main/app/native-multi-image.F90) which has just been updated on the tip of `caffeine:main` to include new sub tests.

Be sure to compile with `-DHAVE_SAVE_COARRAY -DHAVE_MODULE_COARRAY` to activate the subtests that exercise the logic added in this PR.

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


More information about the flang-commits mailing list