Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #395884

Re: type of decimal constants in msvc

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: type of decimal constants in msvc
Date Mon, 22 Dec 2025 05:05:04 -0800
Organization A noiseless patient Spider
Lines 24
Message-ID <868qeusm4f.fsf@linuxsc.com> (permalink)
References <1097ivh$ntii$1@dont-email.me> <10i3dpt$14ajr$1@dont-email.me> <875xa2u0p9.fsf@example.invalid> <10i3hkn$15jea$1@dont-email.me> <871pkqtdyy.fsf@example.invalid>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Date Mon, 22 Dec 2025 13:05:06 +0000 (UTC)
Injection-Info dont-email.me; posting-host="a7f5d1e51a9a8827e6b0e0c25bf5c54b"; logging-data="3669021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zVOZpuwF1j3V0+bRyGA9U5b5FVlW1pmg="
User-Agent Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock sha1:Eg2Db8gR3ME7uv5QMGHEIVFicRQ= sha1:z8kOZq0R0mGWp3Qf0acaRkz1btk=
Xref csiph.com comp.lang.c:395884

Show key headers only | View raw


Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> Thiago Adams <thiago.adams@gmail.com> writes:
>
>> Em 19/12/2025 09:15, Keith Thompson escreveu:
>
> [...]
>
>>> gcc's warning for 18408377700990114895 (which is slightly smaller
>>> than 2**64) is "integer constant is so large that it is unsigned".
>>> This is *incorrect* (and I think it's been reported as a bug), but
>>> the incorrect wording of the warning is not a conformance issue.
>>
>> I am not understating why do you think this is a bug?
>> Because it should not compile?
>
> No, because the message is factually incorrect.

No, it isn't.  The message might be misleading but it isn't wrong.

> The integer constant 18408377700990114895 is not of any unsigned type.

The message doesn't say the constant has an unsigned type.  It says
only that the constant is unsigned.

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

type of decimal constants in msvc Thiago Adams <thiago.adams@gmail.com> - 2025-09-02 17:10 -0300
  Re: type of decimal constants in msvc Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-09-02 13:46 -0700
    Re: type of decimal constants in msvc Thiago Adams <thiago.adams@gmail.com> - 2025-09-02 20:39 -0300
    Re: type of decimal constants in msvc Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-12-15 08:06 -0800
      Re: type of decimal constants in msvc Thiago Adams <thiago.adams@gmail.com> - 2025-12-15 14:03 -0300
        Re: type of decimal constants in msvc Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-12-15 14:14 -0800
  Re: type of decimal constants in msvc Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-03 06:42 +0000
    Re: type of decimal constants in msvc BGB <cr88192@gmail.com> - 2025-09-03 10:59 -0500
    Re: type of decimal constants in msvc Michael S <already5chosen@yahoo.com> - 2025-09-04 15:21 +0300
  Re: type of decimal constants in msvc Thiago Adams <thiago.adams@gmail.com> - 2025-09-03 16:04 -0300
  Re: type of decimal constants in msvc Thiago Adams <thiago.adams@gmail.com> - 2025-12-19 08:43 -0300
    Re: type of decimal constants in msvc Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-12-19 04:15 -0800
      Re: type of decimal constants in msvc Thiago Adams <thiago.adams@gmail.com> - 2025-12-19 09:49 -0300
        Re: type of decimal constants in msvc Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-12-19 12:26 -0800
          Re: type of decimal constants in msvc Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-12-22 05:05 -0800
            Re: type of decimal constants in msvc Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-12-22 12:01 -0800
              Re: type of decimal constants in msvc Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-03-01 18:32 -0800
                Re: type of decimal constants in msvc Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-03-01 19:22 -0800

csiph-web