This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )
- From: "ich at az2000 dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2009 13:38:36 -0000
- Subject: [Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true )
- References: <bug-40186-17447@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ich at az2000 dot de 2009-05-18 13:38 -------
Created an attachment (id=17888)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17888&action=view)
simpler test case (now for wrong ordering case 1)
I was able to reproduce the first case now ("wrong ordering 1"). I also removed
some parts from the test case, it's much shorter now.
This occurs only with -Os now, in all other cases, I don't hit the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40186