From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E3BE3857C48; Tue, 18 Jan 2022 14:11:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E3BE3857C48 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104095] g++ diagnosis may use non-standard terminology: "constant" instead of "literal", "integer" instead of "integral" Date: Tue, 18 Jan 2022 14:11:16 +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: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: keywords 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 14:11:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104095 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Jonathan Wakely --- (In reply to Pavel M from comment #0) > =D0=A1++ standard does not have "integer constant". =D0=A1++ standard has= "integral > constant". The standard has "integral constant expression". There are only a handful of uses of "integral constant" and they're arguably mistakes that should be changed. > =D0=A1++ standard does not have "hexadecimal floating constant". =D0=A1++= standard has > "hexadecimal floating literal". The standard has "hexadecimal-floating-point-literal". > =D0=A1++ standard does not have "floating constant". =D0=A1++ standard ha= s "floating > literal". The standard has "floating-point-literal". Both of those cases are grammar productions. GCC's diagnostics do not necessarily refer to that formal term, because they're user-facing, and not part of a BNF grammar. Not all programmers are familiar with the terminology of the standard. If a simpler or more colloquial term exists, it might be more user friendly to u= se that. In all cases above, the term used by GCC is shorter than the formal t= erm from the standard. That said, I do think "floating constant" should be improved.=