[llvm] [flang][flang-rt] Fix abort on intrinsic assignment from ZLA (PR #177195)

Peter Klausler via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 29 06:20:15 PST 2026


klausler wrote:

It's not about the character lengths.  It's the mismatching array shapes in the assignment.  You can't assign a right-hand side  array whose shape is `[0]` to a left-hand side array whose shape is `[10]`.

`dest(1:) = zla(called(1):)(:called(0))`

The right-hand side there is a character substring applied to a zero-length array section.  It is zero length because `zla` was declared with `dimension(0)`.

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


More information about the llvm-commits mailing list