https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102427
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You can use -fsanitize=undefined to detect overflow at runtime.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 21 Sep 2021 08:51:22 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102427
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You can use -fsanitize=undefined to detect overflow at runtime.