[Bug c/82241] invalid warning on valid int64_t value -9223372036854775808
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 19 06:58:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82241
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
-9223372036854775808 is not a syntactic unit, but the negation of
9223372036854775808, and that is out of range for int64_t. Use
-9223372036854775807-1 to avoid the warning.
More information about the Gcc-bugs
mailing list