[Bug middle-end/60121] gcc does not warn an obvious out-of-bound array access at -O0 and -O1

chengniansun at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 9 00:32:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60121

--- Comment #6 from Chengnian Sun <chengniansun at gmail dot com> ---
The test case can be further reduced to the following code, which is NOT dead
or dependent on bug 60115. 

int b[1];
int f() {
  return b[9999];
}



More information about the Gcc-bugs mailing list