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!
26730 Discussions

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

OrngD
Beginner
323 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
Black Belt
319 Views

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

Barbara_P_Intel
Moderator
272 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.



Reply