- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This code ICEs with the 2025.0.0 Intel Fortran Compiler (IFX).
TYPE :: STR_ARRAY
CHARACTER(LEN = :), ALLOCATABLE :: STRINGS(:)
END TYPE STR_ARRAY
TYPE(STR_ARRAY) :: ARRAY_OF_ARRAYS(1)
CHARACTER(LEN = :), ALLOCATABLE :: ARRAY(:)
ARRAY_OF_ARRAYS(1)%STRINGS = ['AAA', 'BBB', 'CCC']
! The following line, if uncommented, leads to an ICE.
ALLOCATE(ARRAY(1), MOLD = ARRAY_OF_ARRAYS(1)%STRINGS(1))
! This alternative approach does not lead to an ICE.
ALLOCATE(ARRAY(1), MOLD = '123')
END
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for posting this issue. In order for us to reproduce your issue and further investigate, would you please improve your example by providing a fully compilable unit including the current code snippet, the compile command to compile, and the full error message you see during compilation? You may provide a stand-alone program or a subroutine as a fully compilable unit. Also, would you please print out the content of "ARRAY_OF_ARRAYS(1)%STRINGS(1)" in the example to confirm that it is similar to '123', as you cite as the successful counterpart?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure I understand your request... the code is complete, as is. It's a minimal reproducer. If you try to compile it an ICE ("Internal Compiler Error") will be issued by the compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The submitted program in posting 1 is complete. The PROGRAM statement is optional.
See: PROGRAM
PROGRAM
Statement: Identifies the program unit as a main program and gives it a name.
[PROGRAM name]
[specification-part]
[execution-part]
[CONTAINS
internal-subprogram-part]
END[PROGRAM [name]]
...
Description
The PROGRAM statement is optional. ...
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right, I can reproduce the ICE on the code piece. I reported this to the developer. And I will update here when anything comes back.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page