Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 415

Internal Compiler Error with Intel 16+ (ifort)

$
0
0

The attached code has a function interface where the function returns an array of a size not known until runtime.  The interface module compiles just fine but compiling the module that uses the procedure pointer results in an internal compiler error with Intel 16.  I've tried to simplify the example as much as possible while still maintaining a structure similar to our real code.  I've annotated the code with the following information, but making the return array in the interface a fixed size (either through an explicit integer or changing ARRSIZE to a parameter) allows the code to compile, as does removing the 'private' from the functionInterface module.  For reference, here is the error message:

010101_14248

catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for functionUser.f90 (code 1)

The code compiles fine with Intel 14.0.4, 15.0.3, and 15.0.7.  It fails with Intel 16.0.4 and 17.0.0.  Please let me know if I'm doing something wrong.  If this is a compiler bug, please let me know if there is a better workaround than making the functionInterface module completely public.  Making the return array a fixed-size is not really an option for us.

Downloadapplication/octet-streamDownload (293 Bytes)

Downloadapplication/octet-streamDownload (1.05 KB)

Downloadapplication/octet-streamDownload (336 Bytes)


Viewing all articles
Browse latest Browse all 415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>