Open
Description
The entry_23.f test in the gfortran test suite fails because it raises a segmentation fault at runtime on AArch64 and LoongArch, but works correctly on x86. It is possible that this test fails on other non-x86 platforms as well, but these are the only two of which I am aware.
Steps to reproduce. Compile entry_23.f
and run the resulting executable. For example, from the root of a checkout of the llvm-test-suite, this would be:
$ flang -o ./entry_23 ./Fortran/gfortran/regression/entry_23.f
$ ./entry_23
Unexpected failure on AArch64
$ ./entry_23
CHAR_SUB
len(carray(1)) 20
zsh: segmentation fault ./entry_23
Expected success on x86
CHAR_SUB
len(carray(1)) 20
Something Something Something Something
CHAR_SUB
len(carray(1)) 20
Something Something Something Something
Fortran STOP