From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E459D3858D39; Thu, 29 Jun 2023 11:00:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E459D3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688036452; bh=CLHQ9KCvTowsofp2xmC8xVuQ7ZGSnBHe6pHDuzZC/6Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C4KUAGcmt+4xkr2me487ZlhYLGN99bM1kqoWmsRQKUltr4uI7amHHGe5wbTH/wQLe RaU3tLh15dmqJ4OxgI5xcz/dtymJbjDjiy7AoFjbmjeGAenWSPEpF9YQcjwZpdFakQ glK1BUk+nnklyWEC92AJNus4VcQKmLwGZusEMabk= From: "pdimov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110477] -fexcess-precision=standard not applied consistently Date: Thu, 29 Jun 2023 11:00:52 +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: pdimov at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: 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=3D110477 --- Comment #8 from Peter Dimov --- As I commented on the duplicate bug, I don't think this behavior is allowed= by https://eel.is/c++draft/lex.fcon#3. "If the scaled value is not in the range of representable values for its ty= pe, the program is ill-formed. Otherwise, the value of a floating-point-literal= is the scaled value if representable, else the larger or smaller representable value nearest the scaled value, chosen in an implementation-defined manner." I don't see any license here for the value of 3.14f to be 3.14L.=