>Curious
>
>This is the output I get
>
>K:\Documents and Settings\Ian>ifort test.f
>Intel(R) Fortran Compiler for 32-bit applications, Version 8.1 Build
>20040802Z Package ID: w_fc_p_8.1.021
>Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
>
>Microsoft (R) Incremental Linker Version 7.00.9466
>Copyright (C) Microsoft Corporation. All rights reserved.
>
>-out:test.exe
>-subsystem:console
>-entry:mainCRTStartup
>test.obj
>
>K:\Documents and Settings\Ian>test
> Strange : random numbers are the same
> 0.0002472573
> 0.9353569401
> 0.6148786582
> 0.8077240475
>
>Are you running the latest version of the compiler?
>See the details in the compile above for the
>Version I'm using.
Hi, Ian,
Your example shows that the windows version of ifc does not
have the bug. I have only tested linux ifc. The latest
version I tested that has this problem is
Intel(R) Fortran Itanium(R) Compiler for Itanium(R)-based applications
Version 8.1 Build 20040922 Package ID: l_fc_pc_8.1.019
It is newer than your windows ifc.
As Mike Metcalf pointed out, this should be an ifc bug.
The compiler is 'too' clever. Thanks to all.
Xiaogang Wang
|