Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29329 Discussions

ifort and ifx internal compiler error

ronaldorpela
Beginner
2,279 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
2,010 Views

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

View solution in original post

0 Kudos
5 Replies
ronaldorpela
Beginner
2,278 Views
ifx --version
ifx (IFX) 2024.2.0 20240602
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.
0 Kudos
Devorah_H_Intel
Moderator
2,089 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
2,011 Views

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

0 Kudos
bharper
Novice
1,804 Views

I have a similar ifx "internal compiler error" as per below attached code

 

ifx -c ifx_test.f90
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.0 Build 20231017
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.

xfortcom: Fatal: There has been an internal compiler error (C0000005).
compilation aborted for ifx_test.f90 (code 1)

0 Kudos
Steve_Lionel
Honored Contributor III
1,738 Views

Please start a new thread for this - just because the error message is the same that doesn't mean it's the same problem. Tacking on to an unrelated issue can delay a response.

0 Kudos
Reply