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

IFX 2025.2.0 internal compiler error in xfortcom.exe with large MAX() expression

Vahid_ANSYS
Beginner
493 Views

Hello,

I am seeing an internal compiler error when compiling with Intel Fortran (IFX) 2025.2.0. The failure occurs in the compiler front-end (xfortcom.exe) during compilation, not at runtime. The error message is: "error #5629: **Internal compiler error: abort signal raised** compilation aborted"

Vahid_ANSYS_0-1756927816666.png


This is reproducible with a minimal test case that uses a large MAX() expression with 100 arguments. When IFX tries to compile this source, it immediately crashes in xfortcom.exe. I have attached the main.f90 reproducer file so the issue can be reproduced directly.

Could you please confirm if this is a known issue? And could you also ensure that this will be addressed in a future release of IFX?

Thank you!

0 Kudos
3 Replies
andrew_4619
Honored Contributor III
477 Views

https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-out-of-memory-with-too-many-args-to-max/m-p/1709228#M176635

 

Yes it is known, an easy permanent workaround is maxval([arg1,arg2,......,arg100])

0 Kudos
Vahid_ANSYS
Beginner
340 Views

Thank you for your response and for pointing out the workaround. I understand that using maxval([arg1,arg2,...,arg100]) is a possible solution. However, in my situation this workaround is not practical since the actual codebase is very large and making such changes throughout the code would not be efficient.

 

That is why I created and shared a minimal reproducer, so that the compiler team can directly confirm and address the root issue in IFX. Could you please keep me posted once Intel confirms in which version of the compiler this issue is fixed?

 

Thanks again for your support.

0 Kudos
andrew_4619
Honored Contributor III
318 Views

well i can't as i am not intel..... if you follow the original thread it will get updated when it is fixed

0 Kudos
Reply