http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59928
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #1) > That would be undefined behavior. So, the warning is correct. More than that, the promotion is defined to be to 0 or 1 and anything else is undefined.