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

Compiler crash when passing only real/imaginary part of a complex array

WiserOrb
Beginner
314 Views

Ifx 2024.2.0 crashes when passing  the real/imaginary part of an assumed shape/ allocatable array to a subroutine.

 

Compiled with

 

 

 

 

ifx main.f90

 

 

 

 

 

main.f90

 

 

 

 

program main
  complex, allocatable :: x(:, :)
  real :: y

  allocate(x(2, 2))
  x = 1
  
  call foo(x%im, y)
  
  contains
  
  subroutine foo(x, y)
    real :: x(:, :), y
    
    y = sum(x)
    
  end subroutine
  
end program

 

 

 

 

 

Crash report

 

 

 


main.f90(8): error #5623: **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.
  call foo(x%im, y)
-----------^
compilation aborted for main.f90 (code 3)

 

 

 

 

 

0 Kudos
1 Solution
Devorah_H_Intel
Moderator
149 Views

The ICE is fixed in the next 2025.0 ifx release. I have tested and confirmed the fix internally. Thank you for reporting this to us. 

View solution in original post

0 Kudos
1 Reply
Devorah_H_Intel
Moderator
150 Views

The ICE is fixed in the next 2025.0 ifx release. I have tested and confirmed the fix internally. Thank you for reporting this to us. 

0 Kudos
Reply