Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Optimization bug in 12.0.3?

konstantin83
Beginner
542 Views
Hello,

I've recently found something that looks like a compiler bug to me. I'm using ifort 12.0.3.174 and the bug is there when -O3 option is used. This is the simplest version of the program that has it, I hope it is self-explanatory: the value of 'index' variable at the end should be 1, but it is 0 instead with -O3 option. Everything works correct if the module aux_mod is defined in the same file as the main program or if I do not call the subroutine.

main.f90
aux_mod.f90
0 Kudos
3 Replies
Ron_Green
Moderator
542 Views
I will investigate, find what version this first showed itself, and get a bug report going.

ron
0 Kudos
Ron_Green
Moderator
542 Views
bug ID is DPD200170206

affects all versions of 12.x. Does not affect older 11.1 compiler versions.

ron
0 Kudos
Ron_Green
Moderator
542 Views
This bug was fixed in recent 12.1 compilers released after December 2011.

closing.

ron
0 Kudos
Reply