[Bug c/104711] Unnecessary -Wshift-negative-value warning

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 27 21:40:24 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104711

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
However, -fsanitize=shift (and -fsanitize=undefined) will diagnose such cases.
They are also diagnosed where constant expressions are required.

So they are still caught by the undefined sanitizers. Maybe the documentation
should mention the warning too.


More information about the Gcc-bugs mailing list