[Bug c/82296] Warn for code removal due to "code never accesses array out of bounds" assumption
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 22 13:41:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82296
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We have a warning that handles the easiest counted loops, for anything else the
warning is too hard (could produce too many false positives).
Just use -fsanitize=undefined or other runtime instrumentation to find such
bugs.
More information about the Gcc-bugs
mailing list