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: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2008 14:58:11 -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 #14 from mark at codesourcery dot com 2008-07-10 14:58 -------
Subject: Re: [4.4 regression] warning "array subscript is
below array bounds" on delete [] with -O2, -Wall
rguenther at suse dot de wrote:
> Can the FE mark this array-access with TREE_NO_WARNING? Or is it not
> in array_ref form?
In general, the FE cannot do that; the array might have (say) 128-byte
elements, but there will still only be (say) 8 bytes for the cookie.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36633