[Bug c++/57367] New: Missing warning: array subscript is above array bounds

2013-05-22 Thread Gildos at gmail dot com
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 int main(int argc, char**argv) { (void)argv; int pippo[100] ; pippo[1000] = 1 ; pippo[0] = pippo[0] ; return

[Bug c++/57367] Missing warning: array subscript is above array bounds

2013-05-22 Thread Gildos at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 --- Comment #4 from Guido Del Sarto --- I do not receive warnings with the following (no dead code). # #include void warning( int pippo[100] ) { pippo[1000] += pippo[0]; printf( "%d\n", pippo[1000] ) ; } int main(int argc, char**ar