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

ICE with ifx (debug configuration only)

OP1
New Contributor III
625 Views

ifx 2024.2.0 ICEs with the following code, using default Debug configuration in Visual Studio 2022. The code compiles with a Release configuration but runs with a runtime access violation.

PROGRAM P
IMPLICIT NONE
INTEGER, EXTERNAL :: F
INTEGER :: X(100) = 0
X = F(10, 1)
WRITE(*, *) X
CONTAINS
END PROGRAM

FUNCTION F(N, VAL) RESULT(OUTPUT)
IMPLICIT NONE
INTEGER :: N, VAL, OUTPUT(N)
OUTPUT(:) = 1
END FUNCTION F

 

0 Kudos
1 Reply
OP1
New Contributor III
86 Views

This bug is still present in 2026.0 - and it looks like the Intel team didn't pick it up when it was published. Bumping this to the top of the post pile.

0 Kudos
Reply