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

IFX fatal compiler error

bharper
Novice
708 Views

I have an 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)

Labels (1)
3 Replies
andrew_4619
Honored Contributor III
630 Views
module sim

type Sim_Var
    integer :: lu=20
end type Sim_Var
type(Sim_Var) :: sim_scenario

contains
subroutine Open_Sim_Scenario()
    integer nval,i,dummy(10),lu
    nval  = 1
    dummy = 1
    lu    = 20
    if(nval.ne.0) & ! remove this test and it is OK
    write(sim_scenario%lu,'(*(i4,1x))')(dummy(i),i=1,10) ! remove the sim_scenario% and it is OK
end subroutine Open_Sim_Scenario
end module sim

It works with * rather than the non-standard <nval> I guess the IFX implementation is flawed , but I would recommend not using the extension. Compile with -stand and you will get warnings BTW

 

 

bharper
Novice
601 Views

Andrew,

 

Thanks - well spotted - been a while myself since I've used that construct. Just checking older code will compile under the upcoming deprecation of IFORT.

 

Still a bug though. IFX devs need to understand why etc.

0 Kudos
Devorah_H_Intel
Moderator
523 Views

I have been able to reproduce the ICE. Thank you for reporting this to us. Intel Compiler Engineering will investigate and/or fix it in future ifx releases.

0 Kudos
Reply