This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5692: g++ 2.96, ix86: (int)(x*y) result depends on statements near it like cout << endl
- From: ljrittle at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yosefk at cs dot huji dot ac dot il
- Date: 14 Feb 2002 21:51:34 -0000
- Subject: Re: c++/5692: g++ 2.96, ix86: (int)(x*y) result depends on statements near it like cout << endl
- Reply-to: ljrittle at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yosefk at cs dot huji dot ac dot il, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ 2.96, ix86: (int)(x*y) result depends on statements near it like cout << endl
State-Changed-From-To: open->closed
State-Changed-By: ljrittle
State-Changed-When: Thu Feb 14 13:51:34 2002
State-Changed-Why:
Some FP hardware and OSes will support your test by
their design but...
Please consider that ISO C does not guarantee that your
test will work as you expect. You want to learn about
the concepts related to a standard macro DBL_EPSILON .
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5692