https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69746
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I think it was intentional that we only warn here with -Wshift-overflow=2, but consider the shift expression as non-constant in any case.