This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36633] [4.4 Regression] warning "array subscript is below array bounds" on delete [] with -O2, -Wall
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2008 17:39:37 -0000
- Subject: [Bug middle-end/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 #16 from jason at gcc dot gnu dot org 2008-07-31 17:39 -------
Subject: Bug 36633
Author: jason
Date: Thu Jul 31 17:38:08 2008
New Revision: 138425
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138425
Log:
PR c++/36633
* init.c (build_new_1): Don't convert pointer to the data type
until we're actually going to treat it as that type.
Added:
trunk/gcc/testsuite/g++.dg/tree-ssa/new1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36633