https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67602
--- Comment #2 from Mikhail Maltsev <miyuki at gcc dot gnu.org> --- (In reply to Brad Huntting from comment #0) > It should be noted that the C standard appears to allow for undefined > behavior when E2>=N. And so does the C++ standard: "... The behavior is undefined if the right operand is negative, or greater than or equal to the length in bits of the promoted left operand." [expr.shift] (5.8.1).