[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 rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 --- Comment #7 from Richard Biener --- (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 tree-vrp.c check > couldn'

[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 changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment #6

[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 --- 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 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

[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 --- 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 rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[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 --- This is all dead code, gcc discards it before it looks at possible issues.