https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63420
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- What matters is what the C and C++ standards (differs between different versions thereof) say, the documentation is certainly wrong, but even some shifts where shift count is smaller than bitsize can be invalid in some standards (for signed types)).