[Bug middle-end/20674] unexpected result from floating compare

piaget at us dot ibm dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 28 23:05:00 GMT 2005


------- Additional Comments From piaget at us dot ibm dot com  2005-03-28 23:05 -------
323 compares 2 values across a function call ... somthing a programmer can 
reasonably consider. My problem occurs with 2 successive lines of code 
admittedly with 2 compares per line). I don't have a problem that the value of 
the variable changes after precision truncation ... but it seems like a bug 
that the compiler uses a full precision value for the 1st test and a truncated 
value for the 2nd test (the 2nd test being the next line of C++ code).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20674



More information about the Gcc-bugs mailing list