[Bug tree-optimization/78608] gimple-ssa-sprintf.c:570:17: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int'
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 1 10:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78608
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-12-01
Ever confirmed|0 |1
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
% echo 'void foo() { __builtin_snprintf(0, 0, "%ld"); }' | gcc -x c -c -O2 -o
/dev/null -
gimple-ssa-sprintf.c:570:17: runtime error: negation of -9223372036854775808
cannot be represented in type 'long int'; cast to an unsigned type to negate
this value to itself
More information about the Gcc-bugs
mailing list