icc 8.0 bug?

icc 8.0 bug?

hello all,

It seems there is a bug of icc 8.0 in reading double data from a file.

::::::::::::::
t.cpp
::::::::::::::
#include
#include

int main()
{
std::ifstream in("t.txt") ;
double z;
in >> z ;
std::cout z std::endl;
return 0 ;
}
::::::::::::::
t.txt
::::::::::::::
0.004

icc t.cpp
a.out
0.04

btw, the system is Readhat.
icc 7.0 doesn't have this problem.

Message Edited by linyd@hotmail.com on 02-27-2005 01:14 PM

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