https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93184
ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |ktkachov at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from ktkachov at gcc dot gnu.org --- Shift by a negative amount or larger than the type width is undefined behaviour in C (I think C++ as well). There are no guarantees on the results of that program.