This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36633] [4.4 regression] warning "array subscript is below array bounds" on delete [] with -O2, -Wall
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2008 14:07:22 -0000
- Subject: [Bug c++/36633] [4.4 regression] warning "array subscript is below array bounds" on delete [] with -O2, -Wall
- References: <bug-36633-14909@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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