From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13350 invoked by alias); 18 May 2009 14:53:09 -0000 Received: (qmail 12696 invoked by uid 48); 18 May 2009 14:52:54 -0000 Date: Mon, 18 May 2009 14:53:00 -0000 Message-ID: <20090518145254.12695.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40186] floating point comparison is wrong ( !(a < b) && (b > a) is true ) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sliwa at cft dot edu dot pl" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg01536.txt.bz2 ------- Comment #7 from sliwa at cft dot edu dot pl 2009-05-18 14:52 ------- The case (a < b) && (b < a) shows that not discarding the extra precision before performing a comparison leads to serious problems. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40186