From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 350433858D33; Tue, 17 Oct 2023 19:42:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 350433858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697571749; bh=N6lQSwPxU6Hz0Dmbrn0cYLihHYWaj9/NCB14fE71Gx8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S16ZsWSl96SRNuGbUKJzeNa3EGww6svEN82RUKAFc8RYS/5jvsWb0XzsJlH4nz3lR ZbtjcpIc5jKc+CRNPTc2v8YH4Y0aJOTR/oKSqcczhRFCEhFnPpuFesMTS4/xsdwmHq VM8zgBwgjGo2n//SfEnlwuDaIFBAqU/i+pNkjCfk= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111808] [C23] constexpr with excess precision Date: Tue, 17 Oct 2023 19:42:28 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com 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: 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=3D111808 --- Comment #7 from joseph at codesourcery dot com --- I think it's reasonable for such a portability issue to be detected only=20 when building for i386, much like a portability issue from code that=20 assumes long is 64-bit would only be detected when building for a 32-bit=20 target. Then adding a note would help the user, seeing an error on i386,=20 to understand the non-obvious reason for the error. I don't think it's such a good idea to try computing also in hypothetical=20 excess precision, when building for a target that doesn't use excess=20 precision, in attempt to generate a portability warning there.=