https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104095

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Pavel M from comment #0)
> С++ standard does not have "integer constant". С++ 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.

> С++ standard does not have "hexadecimal floating constant". С++ standard has
> "hexadecimal floating literal".

The standard has "hexadecimal-floating-point-literal".

> С++ standard does not have "floating constant". С++ standard has "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 use
that. In all cases above, the term used by GCC is shorter than the formal term
from the standard.

That said, I do think "floating constant" should be improved.

Reply via email to