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

ICE with ifx (debug configuration only)

OP1
New Contributor III
273 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
0 Replies
Reply