[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2023-08-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2020-11-19 Thread pascal_cuoq at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 Pascal Cuoq changed: What|Removed |Added CC||pascal_cuoq at hotmail dot com ---

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2020-08-26 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 --- Comment #5 from joseph at codesourcery dot com --- The way GCC actually behaves is that this constant is unsigned in the preprocessor but signed outside the preprocessor. I'm not sure that's exactly intent (though the preprocessor having

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2020-08-26 Thread richard-gccbugzilla at metafoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 --- Comment #4 from Richard Smith --- (In reply to Richard Smith from comment #3) > such a literal "has no type" in C, which presumably results in undefined > behavior Ah, no, C11 6.4.4/2 makes this a constraint violation. But either way I

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2020-08-26 Thread richard-gccbugzilla at metafoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 --- Comment #3 from Richard Smith --- In the mean time, what is GCC's intent here? Clang is following the behavior described by GCC's diagnostic text, treating decimal integer literals that don't fit in 'long long' but do fit in 'unsigned long

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2020-08-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 --- Comment #2 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #1) > __int128 is NOT extended integer type: WG14 are supposed to be fixing that though.

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2020-08-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 --- Comment #1 from Andrew Pinski --- __int128 should not be used with respect to the type at all. __int128 is NOT extended integer type: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50441