[flang-commits] [flang] [llvm] [Flang] Adding first lowering for the allocation and deallocation of coarrays (PR #182110)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Sun Apr 19 16:22:40 PDT 2026
kkwli wrote:
>
> @kkwli: LLVM Flang has never [officially supported lowering of coarrays](https://flang.llvm.org/docs/FortranStandardsSupport.html#fortran-2008). This PR is the first to start adding that experimental support, and the error above is a deliberate one that excludes a category of coarrays that are not yet handled correctly (either before or after this PR).
>
> IOW this seems like "error message working as intended" to me. Did you expect some different fatal behavior for this unimplemented feature?
>
> IMHO the fact that some [trivial programs](https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/coarray/alloc_comp_10.f90) declaring coarrays (but avoiding use of any coarray runtime features) may have previously "snuck past" flang's `not yet implemented: coarray` errors represents a compiler defect, not a feature. Perhaps the test suite is the one that needs updated?
@bonachea These tests pass before this commit. The behavior is changed due to this commit. I understand that the coarray feature is work in progress and the message is totally appropriate. In my opinion, these tests should be disabled for now.
https://github.com/llvm/llvm-project/pull/182110
More information about the flang-commits
mailing list