https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88401
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> --- It is a front-end warning, so there is no constant propagation possible. You can use -fsanitize=shift to detect this stuff at runtime.