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

Intel compiler crash for C function pointer

Groostav
Beginner
348 Views

Oook, this has been a tough one for me.

 

I've got some code that previously compiled with visual studio 2017 and similar ifort compiler versions (I believe it was then Parallel Studio XE 2017).

 

Updated to vs 2019 and I believe parallel studio XE 2019 with minor issues --in particular, there was seemingly some problem in file order that would cause the build to fail sometimes? it was pretty scary but I didn't pay enough attention.

 

With IFX 2025 I get this crash:

https://gist.github.com/Groostav/d20736e920c60d5fef9d3c2b813adde3

xfortcom: Fatal: There has been an internal compiler error (C0000005).

 

Source code to reproduce is included in the supplied gist.

 

Any workarounds welcomed; though I am not a fortran developer. It seems like if i define the abstract interface in the same module file as the evaluateObjectivesSinglePoint usage-site It will compile without issue. This would be a little tedious and require some minor refactoring I'm probably capable of? but before I got started I would love to hear feedback from you guys.

 

Please help. This has become somewhat urgent and has been very frustrating.

 

0 Kudos
2 Replies
andrew_4619
Honored Contributor III
259 Views

I tried your project in ifx 2025.1.0 and get the same ICE. I had a play with it changing a few things but have not discovered anything I considered significant. An ICE is always a compiler bug.  I personally don't see any thing wrong with your code. 

Shiquan_Su
Moderator
131 Views

We are working on this issue.

0 Kudos
Reply