https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47579
Ivan Sorokin <vanyacpp at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vanyacpp at gmail dot com --- Comment #3 from Ivan Sorokin <vanyacpp at gmail dot com> --- Since 7.1 GCC doesn't produce any shifts on the test code as well as on the examples from comment #2. https://godbolt.org/z/f48EqP I think the bug can be closed now.