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.