Dear Intel Fortran Community,
I was exploring the Intel Fortran Compiler coarray feature and found the following issue.
IFORT 2018 compiler failed when I tried to compile a code that contains allocate statement of a coarray of strings.
I provide a simple code I did not manage to compile as well as the error printed by the compiler. I also tried with the last version (2023) and ifx and it is also unable to build the executable.
Kind regards
manuel
Operative system:
CentOS Linux release 7.9.2009 (Core)
Code:
program reportcorrayerror
character(len=:), allocatable :: stringlist(:)[:]
integer :: length, num
length = 20
num = 5
allocate(character(len=length) :: stringlist(num)[*])
end program
Error message:
$ ifort -coarray reportcoarrayerror.f90 -o reportcoarrayerror
reportcoarrayerror.f90(8): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.
compilation aborted for reportcoarrayerror.f90 (code 1)
Note: It works if I allocate only the array part and not the character length!
program reportcorrayerror
character(len=200), allocatable :: stringlist(:)[:]
integer :: num
num = 5
allocate(stringlist(num)[*])
end program