http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
Bug ID: 57367 Summary: Missing warning: array subscript is above array bounds Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Gildos at gmail dot com I write this simple code in the file test.cpp: ##### #include <stdio.h> int main(int argc, char**argv) { (void)argv; int pippo[100] ; pippo[1000] = 1 ; pippo[0] = pippo[0] ; return argc; } ##### I receive NO warning typing: $ gcc -Wall test.cpp -o test Thanks Guido