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

Strange behavior with Fortran 11.0.74

John_Young
New Contributor I
314 Views
Hi,

I've attached a small test case that is exhibiting some strange behavior. The outcome of the program should be '0', but with the compiler settings in the project file, '1' is returned. This seems like it may be a compiler bug.

I've tried to narrow down the test case as much as possible. Almost any significant change to the code will cause a correct result '0' to be computed. The code should be compiled under x64 and not Win32 since Win32 does not exhibit the problem. Certain project options will also result in a correct answer. For example, setting Configuration->Fortran->Run-Time->Check For Null Pointer and Allocatable Array References to 'Yes' will result in a correct result.

My setup is Windows Vista 64, MS VS2008, and Intel Fortran 11.0.74.

Thanks,
John
0 Kudos
1 Reply
Wendy_Doerner__Intel
Valued Contributor I
314 Views
John,

With our 12.0 Update 1 compiler this is no longer an issue. Your original test case compiles and runs on a 64 bit system with a "0" result.

------

Wendy

Attaching or including files in a post

0 Kudos
Reply