From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9819C3858C54; Tue, 20 Jun 2023 15:31:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9819C3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687275104; bh=AHdafA6Q56eWH/8YlIOj3bGTfyRvcQnbzcs7FoiFODw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B9NmO7yBR9PzLsETj758n9YW4no4w5enDhXGsmgpbAMFJHDHc+9UgB+MRXbohBWn/ GJXp8CaKsK1NbRUcMurXouVbyDMx6YD26gngPYv5y101T8bT/mmx6AbUBZcU53OwUp 9QJ4l1e1X4pzVXBFmVLtHS8px3AyRjrOal52Cr9Q= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110321] Double precision comaprison does not seem to work well when -std=c++17 option is selected Date: Tue, 20 Jun 2023 15:31:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110321 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > You can use (a =3D=3D (double)2.2) to make the comparison work. Or use -std=3Dgnu++17, or use -std=3Dc++17 -fexcess-precision=3Dfast=