Groups | Search | Server Info | Login | Register


Groups > comp.lang.c > #396713

Re: type of decimal constants in msvc

From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: type of decimal constants in msvc
Date 2026-03-01 18:32 -0800
Organization A noiseless patient Spider
Message-ID <86pl5nezbc.fsf@linuxsc.com> (permalink)
References (2 earlier) <875xa2u0p9.fsf@example.invalid> <10i3hkn$15jea$1@dont-email.me> <871pkqtdyy.fsf@example.invalid> <868qeusm4f.fsf@linuxsc.com> <87a4zawaj7.fsf@example.invalid>

Show all headers | View raw


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

> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
>> 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.
>
> What distinction are you making?

The distinction I'm making is between what the statement actually
says rather than how it might be interpreted.

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


Thread

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