This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36633] [4.4 regression] warning "array subscript is below array bounds" on delete [] with -O2, -Wall



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]