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

ifort and ifx internal compiler error

ronaldorpela
Beginner
446 Views

When I try to compile the following code

program main
  implicit none

  real(8), allocatable :: x(:,:,:)
  complex(8), allocatable :: z(:,:,:)

  allocate( x(5,4,3), source=1.0d0 )
  allocate( z, source=cmplx( x, 0.d0, kind=8))

end program

I observe an internal compiler error with both ifort and ifx. However, with gfortran, the code compiles without issues. Does it not conform to the fortran standard, or is it a bug with the intel compiler?

Here are the versions used

ifort --version
ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '-diag-disable=10448' to disable this message.
ifort (IFORT) 2021.13.0 20240602
Copyright (C) 1985-2024 Intel Corporation.  All rights reserved.

 

0 Kudos
1 Solution
Devorah_H_Intel
Moderator
177 Views

The fix for this issue will be included in the next 2025 ifx release. 

View solution in original post

0 Kudos
3 Replies
ronaldorpela
Beginner
445 Views
ifx --version
ifx (IFX) 2024.2.0 20240602
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.
0 Kudos
Devorah_H_Intel
Moderator
256 Views

I was able to reproduce the ICE. This case is now escalated to the compiler development team. 

Thank you for the report. 

0 Kudos
Devorah_H_Intel
Moderator
178 Views

The fix for this issue will be included in the next 2025 ifx release. 

0 Kudos
Reply