Groups | Search | Server Info | Login | Register
Groups > comp.lang.c > #395860
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: type of decimal constants in msvc |
| Date | 2025-12-19 12:26 -0800 |
| Organization | None to speak of |
| Message-ID | <871pkqtdyy.fsf@example.invalid> (permalink) |
| References | <1097ivh$ntii$1@dont-email.me> <10i3dpt$14ajr$1@dont-email.me> <875xa2u0p9.fsf@example.invalid> <10i3hkn$15jea$1@dont-email.me> |
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. The integer constant
18408377700990114895 is not of any unsigned type.
Diagnosing it is correct (since 18408377700990114895 > LLONG_MAX),
but the message is incorrect.
The bug report is <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788>.
[...]
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
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
csiph-web