[flang-commits] [flang] [Flang][HLFIR] Lower PACK(array, .TRUE.) to hlfir.reshape (PR #213603)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Wed Aug 19 05:06:19 PDT 2026
eugeneepshteyn wrote:
@ejose02 , a small reproducer that you can use as a unit test in the next PR:
```fortran
program p
character(3) :: a(4) = ['abc','def','ghi','jkl']
character(3), allocatable :: b(:)
b = pack(a, .true.)
print *, b
end
```
Failure with this PR:
```
$ flang -c pack_char.f90
unsupported integer type
UNREACHABLE executed at .../flang/lib/Optimizer/Dialect/FIRType.cpp:524!
```
https://github.com/llvm/llvm-project/pull/213603
More information about the flang-commits
mailing list