This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10902: comparing doubles is not consistent in gcc 3.3 (SuSE version)
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jos at vandenoever dot info, nobody at gcc dot gnu dot org
- Date: 21 May 2003 14:14:08 -0000
- Subject: Re: c++/10902: comparing doubles is not consistent in gcc 3.3 (SuSE version)
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jos at vandenoever dot info, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: comparing doubles is not consistent in gcc 3.3 (SuSE version)
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Wed May 21 14:14:07 2003
State-Changed-Why:
I get the same result for 3.2.3, 3.3 (release) and 3.4
(mainline):
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc
g/x> ./a.out
one != belowone
double(1) != double(1) - DBL_EPSILON
Could you possibly try with the 3.3 release, not with the
snapshot SuSE is shipping?
Thanks
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10902