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

Cute tiny ICE

OP1
New Contributor II
429 Views

This short example triggers an ICE when compiled, due to the unfortunate presence of the extra parenthesis at the end of the second line (IVF 16.0.1.146).

SUBROUTINE S
CALL F(__LINE__))
END

On an unrelated note, did the interpretation of __FILE__ by the preprocessor change with IVF 16? Now it returns the full file path, I seem to recall before it was only the file name itself. Or maybe I changed a parameter controlling this behavior (in Visual Studio, etc.) without noticing it?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
429 Views

That is cute - escalated as issue DPD200380604.

The file path difference is not version or VS-specific. __FILE__ gives you whatever you put on the command line for the source file. In a VS project, the build system puts in the full path - that hasn't changed.

0 Kudos
Steven_L_Intel1
Employee
429 Views

Fixed for a future release.

0 Kudos
Reply