[Bug middle-end/88401] -Wshift-overflow only works for const variables

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 7 12:34:00 GMT 2018


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.


More information about the Gcc-bugs mailing list