Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28517 Discussions

internal error coarray allocatable array of strings

macardosa
Beginner
406 Views

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

 

0 Kudos
1 Solution
Ron_Green
Moderator
387 Views

thanks for bringing this to our attention. 

 

coarrays of allocatable strings will be supported in the 2024.0 release.

This still gives an error with the current 2023.1 compiler, and the forthcoming 2023.2 compiler (due out this summer).  

 

I tested this code with the code branch we are using for the 2024.0 release and no error. 

View solution in original post

0 Kudos
2 Replies
Ron_Green
Moderator
388 Views

thanks for bringing this to our attention. 

 

coarrays of allocatable strings will be supported in the 2024.0 release.

This still gives an error with the current 2023.1 compiler, and the forthcoming 2023.2 compiler (due out this summer).  

 

I tested this code with the code branch we are using for the 2024.0 release and no error. 

0 Kudos
macardosa
Beginner
380 Views

Thank you for the prompt response.

0 Kudos
Reply