https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66875
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- You can try -Warray-bounds, but it has its own quirks... If you compile with -fsanitize=undefined you should get a run-time error when doing an out-of-bounds access. Closing.