Using Intel(R) Visual Fortran Compiler 17.0.2.187 [IA-32] I have a number of ICE's the first one a have reduced to a simple case that replicates the problem:
module ice implicit none integer, parameter :: ld=82 contains subroutine thingy character(ld) :: gch integer :: l1 l1 = unpad(gch,ld) end subroutine thingy function unpad(gbuf,ipad) integer :: unpad integer, intent(in) :: ipad character(len=ipad) :: gbuf gbuf = adjustl(gbuf) unpad = len_trim(gbuf) end function unpad end module ice
Configuration: Debug|Win32 ------
Compiling with Intel(R) Visual Fortran Compiler 17.0.2.187 [IA-32]...
Source1.f90
fortcom: Fatal: There has been an internal compiler error (C0000005).
The line that causes the ICE is "l1 = unpad(gch,ld)". If the parameter LD is defined in "thingy" rather than module ICE it compiles OK.