c++/5692: g++ 2.96, ix86: (int)(x*y) result depends on statements near it like cout << endl

ljrittle@gcc.gnu.org ljrittle@gcc.gnu.org
Thu Feb 14 15:00:00 GMT 2002


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



More information about the Gcc-bugs mailing list