[Bug c++/52954] Missing bounds check warning without optimization

2015-07-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52954 --- Comment #5 from Manuel López-Ibáñez --- Ops, wrong PR. Try again: Duplicate. *** This bug has been marked as a duplicate of bug 35587 ***

[Bug c++/52954] Missing bounds check warning without optimization

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

[Bug c++/52954] Missing bounds check warning without optimization

2014-09-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52954 Andrew Pinski changed: What|Removed |Added CC||leis at in dot tum.de --- Comment #3 fro

[Bug c++/52954] Missing bounds check warning without optimization

2012-04-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52954 Richard Guenther changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR

[Bug c++/52954] Missing bounds check warning

2012-04-12 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52954 --- Comment #1 from davidxl 2012-04-12 21:56:07 UTC --- Another example: constexpr int arr_size = 42; constexpr int N = 44; void f(int); int test() { int arr[arr_size]; // ... f(arr[N]); // ... if (N < arr_size) return arr[N];