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

fortcom: Fatal: There has been an internal compiler error (C0000005)

OrngD
Beginner
988 Views

Platform: win10

compiler:  parallel_studio_xe_2020_update4_cluster_edition

Try the following codes:

!=========================

program main
implicit none

type T
integer, allocatable :: ia(:)
end type T

integer, parameter :: n = 5
integer :: i
type(T) :: Tt

! <<< Body >>>

allocate(Tt%ia(1:n), source=[(i,i=1,n)])

associate(ta => Tt%ia([1,3]))
write(*,*) ta
end associate

end program main

!=======================

! It got into trouble with intel fortran. However, gfortran works well.

0 Kudos
2 Replies
mecej4
Honored Contributor III
984 Views

Ifort 2021.1 also produces ICE. Ifx, on the other hand, builds an EXE that runs correctly.

0 Kudos
Barbara_P_Intel
Moderator
937 Views

Thanks for reporting this. I duplicated the problem and filed a bug on your behalf, CMPLRIL0-33522. I'll watch it and let you know when it is fixed.



0 Kudos
Reply