Statement functions

Statement functions

Please refer to the following code:

program TEST3
implicit none
integer I
real DUMMY_F_1
real DUMMY_F_2
DUMMY_F_1(I)=real(I)
DUMMY_F_2(I)=DUMMY_F_1(I)
write (6,*) DUMMY_F_2(1) - DUMMY_F_2(0)
end program TEST3

this code compiled with some other compilers (PGF, MipsPro-irix) gives theoutput "1.0" (expected)
compiled with IFC gives "0.0"
can anyone point to the problem? is it a compiler bug or intended behavior?possible solutions (without rewriting the code using contained functions)? any compiler flags that would fix that?

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Offhand, this just looks like a compiler bug. I doubt any switches would help. Please report it to Intel Support.

Steve - Intel Developer Support

I use a free unsupported version of IFC, so I am not eligible for Premiere Support from Intel. May be someone who has that would like to submit that to Intel and see what they say.

Yes, you are eligible to use Premier Support. Simply register using the serial number that was sent to you. You can submit problem reports, which will be investigated. Support is limited in that you don't get fixes, but we do encourage you to report problems.

Steve - Intel Developer Support

You are eligible for "limited support" through Premier Support. You can report problems so that they will be investigated. Register using the serial number sent to you when you got the compiler.

I tried this program with a recent compiler (8.0.042) and it got the 1.0 result.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today