The source file below produces upon compilation with ifort 16.0.0 20150815 on two slightly different parallel sandy bridge systems with
ifort -r8 -O2 -c compilererror.f90
catastrophic error: **Internal compiler error: segmentation violation signal raised** 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 compilererror.f90 (code 1)
The compilation completes without errors for -O1, without -r8 or for version 15.0.2, and maybe lower versions, too.
compilererror.f90:
module b
implicit none
integer :: e
contains
subroutine a(c,d)
implicit none
integer :: i
real, dimension(-e:) :: c
real, dimension(*) :: d
do i=1,9
d(i)=-c(i-1)
enddo
end subroutine a
end module b
This is the most simple version of the error producing code I could find.
Is there anything wrong with the piece of code? What could be the reason for the (optimizer?) error?
Thanks in advance!
K.H