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

!dec$ define works differently in debug and release

LeonardB
New Contributor I
435 Views

The enclosed sample code works differently when compiling for Debug and Release.

!dec$ define X first in the source code file is walid for the rest of the file when the setting is Release. 

When compiling for Debug is X defined only in first routine in the file 

0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
435 Views

Interesting. Out of curiosity, turn off all IPO (both compiler and linker) and see what happens.

Jim Dempsey

0 Kudos
Lorri_M_Intel
Employee
435 Views

Isn't that interesting ... it's the -warn:interfaces switch.

You can work around this by expliciitly adding -DX on the command line.

I've reported this internally as DPD200245869.

            --Lorri

 

0 Kudos
Reply