From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43172385770F; Wed, 31 May 2023 12:21:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43172385770F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685535708; bh=fYqxeuNmmW1whvnzHeWEidsWPIa7cOFNfRFwyUNvmeg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f/T8BHXqdAIPPsYRK4aGrTOqGTYeuULcjq2RM8zsfJqzG8fGJ0O1Fa2r95jcnWHQB FRign9f3+Qst59JJUopJxgOMoo6kYrAZoBboalXJOuWIW3hpZYDXEqJM3wKzH6mlNq DgoucyHj6hrEYtbqXCKa1SIOsGWl5SsBINn+8nGc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/104772] std::numeric_limits<__float128> should be specialized Date: Wed, 31 May 2023 12:21:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 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=3D104772 --- Comment #6 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:f150a084e25eaa98afaf25e2211001047ecc8d44 commit r14-1433-gf150a084e25eaa98afaf25e2211001047ecc8d44 Author: Jonathan Wakely Date: Wed May 17 14:02:14 2023 +0100 libstdc++: Add std::numeric_limits<__float128> specialization [PR104772] As suggested by Jakub in the PR, this just hardcodes the constants with a Q suffix, since the properties of __float128 are not going to change. We can only define it for non-strict modes because the suffix gives an error otherwise, even in system headers: limits:2085: error: unable to find numeric literal operator 'operator""= Q' libstdc++-v3/ChangeLog: PR libstdc++/104772 * include/std/limits (numeric_limits<__float128>): Define. * testsuite/18_support/numeric_limits/128bit.cc: New test.=