From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CC5E3858D1E; Fri, 30 Sep 2022 13:32:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CC5E3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664544754; bh=OjlAubPghOlbepww8WX228U9plH6hsbk0ezeNsy9MCw=; h=From:To:Subject:Date:From; b=rcsmy3f36TFcnYsayofJ+j5mJL+qoiFak3w8aTbB8rYY6WIGqrUTuixwgxIGCalHf IFCn6tA4WdCTL9T5kncMZqrP7VYWyycobeZrNmbGBWjQDXgIvkD4NhHwnrPJH4+Usx IxLtnLEawde3QB6N9wNf4o7x2Xkb8HCZbWdgVNMw= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107097] New: Implement floating point excess precision in C++ Date: Fri, 30 Sep 2022 13:32:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107097 Bug ID: 107097 Summary: Implement floating point excess precision in C++ Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jason at gcc dot gnu.org Target Milestone: --- Joseph Myers implemented C99 excess precision support for C in 4.5: https://gcc.gnu.org/legacy-ml/gcc-patches/2008-11/msg00105.html C++ has a similar rule in [expr.pre]p6: "The values of the floating-point operands and the results of floating-point expressions may be represented in greater precision and range than that required by the type; the types are not changed thereby. [Footnote: The cast and assignment operators must still perform their specific conversions.]" Implementing this seems particularly important for users wanting to use 16-= bit floating point types in C++.=