https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567
--- Comment #6 from Artem <tyoma.ariv at gmail dot com> --- (In reply to Manuel López-Ibáñez from comment #5) > > Your code is still broken and it may get miscompiled with a different > version of GCC or a different compiler or due to any changes to the > surrounding code. 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? Could you please advise Thank you Artem