| Issue |
239622
|
| Summary |
[flang] Folding `TRANSFER` with a MOLD whose element size is not a constant aborts: `CHECK(elemBytes && *elemBytes >= 0)` in initial-image.cpp for a parameterized type with a LEN-dependent character component, and an empty array
|
| Labels |
crash,
flang,
generated by fuzzer
|
| Assignees |
|
| Reporter |
YuanchengJiang
|
The following code:
```fortran
type t(l)
integer, len :: l
character(l) :: c
end type
type(t(4)) :: a
print *, transfer(1., a)
end
```
Resulted in this output:
```
fatal internal error: CHECK(elemBytes && *elemBytes >= 0) failed at /root/llvm-project/flang/lib/Evaluate/initial-image.cpp(117)
```
Trunk reproducer (`-fsyntax-only`): https://godbolt.org/z/EMPvn5Y9d
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs