- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page