void foo(void) { int i[2]; i[2] = 0; i[3] = 0; } does not get warned on, even with -Wall. This might catch some subtle bugs in gcc itself.
How does this relate to mudflap?!?
My vague idea would be that mudflap already does this (and *much* more). Maybe a small part of its logic could be moved to a compile-time warning.
(In reply to comment #1) > How does this relate to mudflap?!? Compile time vs runtime warnings. This is also a dup of bug 8268. *** This bug has been marked as a duplicate of 8268 *** *** This bug has been marked as a duplicate of 8268 ***