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

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Thu Jul 10 14:08:00 GMT 2008



------- Comment #13 from rguenther at suse dot de  2008-07-10 14:07 -------
Subject: Re:  [4.4 regression] warning "array subscript is
 below array bounds" on delete [] with -O2, -Wall

On Thu, 10 Jul 2008, paolo dot carlini at oracle dot com wrote:

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

Can the FE mark this array-access with TREE_NO_WARNING?  Or is it not
in array_ref form?

Richard.


-- 


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



More information about the Gcc-bugs mailing list