https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92334
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |NEW Last reconfirmed| |2019-11-03 Resolution|WONTFIX |--- Ever confirmed|0 |1 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- As the warnings show, the invalid accesses obviously are easily detectable. Clang instruments the code so the invalid access is detected at runtime, so it's a bug that GCC doesn't do the same. Please leave this open. I'll fix it myself if/when I get to it.