https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98663

--- Comment #3 from charliepdts at gmx dot at ---
While I appreciate the anything can happen, what surprised us was the lack of
any kind of warning.

Does the compiler not notice the access outside the array in this case?

background: we are working with a rather large codebase here for an embedded
target which unfortunately does not play nice with gdb. The tracking down of
this behaviour took rather long. A warning could have helped us find and
eliminate this problem in our code much sooner.

Reply via email to