------- Comment #12 from paolo dot carlini at oracle dot com 2008-07-10 13:53 ------- The warning is bogus, for sure. The issue is how / where to fix it. Apparently it comes from check_array_ref in tree-vrp.c, outside the C++ front-end indeed. First thing, we should probably figure out what is exactly happening at -O2 vs -O1 and study a bit the code around that check_array_ref call in the debugger... Anyway, if we are coming to believe that the issue isn't a front-end one, maybe Richard can help...
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36633