https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567
--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Artem from comment #6) > Is there any way to indicate such kind of errors during compilation. > I tried to add options -Wall -Waggressive-loop-optimizations for compilation > code from the description. But I didn't get any warnings related to "reading > one past the array bounds". > Which kind of warnings are switched on by adding > -Waggressive-loop-optimizations? See https://gcc.gnu.org/wiki/FAQ#misoptimization and https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options