Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
26857 Discussions

ifort 2021.4.0 ICE using coarray components

Michael_S_17
Novice
291 Views
! ifort version 2021.4.0
! ifort -coarray -coarray-num-images=5 test.f90 -o a.out

! compile time output:

!010101_13941

!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 test.f90 (code 1)

module test
implicit none
private

type, public :: type_a
  integer :: c ! also required to raise the compile time error
end type type_a

type, abstract, public :: test_type
  private
  ! main cause of the compile time error,
  ! exchanging the sequence of these both lines will lead to proper compilation:
  type (type_a), public :: x
  integer, public, codimension[:], dimension (:,:), allocatable :: coarray_component
contains
  private
end type test_type

contains

subroutine z (this)
  class (test_type), intent (inout) :: this
  integer :: image_number
  integer :: array_index
  integer, allocatable, dimension(:) :: integer_array
  ! also required to raise the compile time error:
  this % coarray_component(:,array_index) [image_number] = integer_array
end subroutine z
end module test


program main
end program main
0 Kudos
1 Solution
Barbara_P_Intel
Moderator
231 Views

Thank you for reporting this issue. I forwarded the information to the Fortran compiler team with a bug id of CMPLRIL0-34375. I'll let you know when the fix is available.



View solution in original post

3 Replies
Michael_S_17
Novice
278 Views

The ICE occurs only with multi-dimensional (more than 1 dimension) coarray components.

Michael_S_17
Novice
266 Views

And also important, the ICE occurs only if the multi-dimensional coarray component is NOT at the top of other components. If the coarray component is at the top, ifort has no problems with it, even with much more sophisticated coarray codes.

Barbara_P_Intel
Moderator
232 Views

Thank you for reporting this issue. I forwarded the information to the Fortran compiler team with a bug id of CMPLRIL0-34375. I'll let you know when the fix is available.



View solution in original post

Reply