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

2016-04-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 Manuel López-Ibáñez changed: What|Removed |Added Status|NEW |RESOLVED CC|

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

2013-05-22 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 --- Comment #1 from Marc Glisse glisse at gcc dot gnu.org --- This is all dead code, gcc discards it before it looks at possible issues.

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

2013-05-22 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

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

2013-05-22 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 --- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com --- Yeah, shared between the front-ends, this isn't a C++-only issue, of course.

[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 Gildos at gmail dot com --- I do not receive warnings with the following (no dead code). # #include stdio.h void warning( int pippo[100] ) { pippo[1000] += pippo[0]; printf( %d\n, pippo[1000] ) ; }

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

2013-05-22 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 --- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com --- Remember that -O2 is required for this kind of middle-end check. A front-end check would not.

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

2013-05-22 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC||rguenth at

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

2013-05-22 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 --- Comment #7 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to Paolo Carlini from comment #6) Disappointing, Richard, that in 4.8/4.9 (vs 4.7) we don't seem to warn at all for the testcase in Comment#4 too. I'm wondering if the