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 middle-end/36633] [4.4 Regression] warning "array subscript is below array bounds" on delete [] with -O2, -Wall



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


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