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

ICE with -standard-semantics

MR
Beginner
955 Views

Hi all,
   I see and ICE when compiling the following code with -standard-semantics :

$  ifort -standard-semantics -c ice.f90  
010101_13220
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 ice.f90 (code 1)

$ ifort -V
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0 Build 20131008
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.

 

module test
 implicit none
contains
 subroutine mv_r(y)
  real, intent(inout) :: y(:)
  complex, allocatable :: cy(:)
   allocate(cy(size(y)))
   cy = cmplx(y,0.0)
 end subroutine mv_r
end module test

 

0 Kudos
4 Replies
Steven_L_Intel1
Employee
955 Views

Thanks for the nice test case. It seems to be related to getting the size of the CMPLX result. Escalated as issue DPD200254691.

0 Kudos
MR
Beginner
955 Views

Steve, thank you for the quick reply.

Marco Restelli

0 Kudos
Steven_L_Intel1
Employee
955 Views

This turned out to be a somewhat more general issue that we were already looking at when any elemental intrinsic function was on the right side of an assignment and reallocation was needed. We'll make sure this all works properly.

0 Kudos
Steven_L_Intel1
Employee
955 Views

This has been fixed for a release later this year.

0 Kudos
Reply