]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/36633 (warning "array subscript is below array bounds" on delete...
authorJason Merrill <jason@redhat.com>
Thu, 31 Jul 2008 17:38:08 +0000 (13:38 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 31 Jul 2008 17:38:08 +0000 (13:38 -0400)
commit10ee5386adadefebd247c7e4870c666f2c9b359d
tree8faf9acdedf5f85f81f9b4f164dc21693c231eb4
parentfc74cbc4bd40b9f1b0f58abff1fb9efecb5b1d49
re PR middle-end/36633 (warning "array subscript is below array bounds" on delete [] with -O2, -Wall)

        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.

From-SVN: r138425
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/g++.dg/tree-ssa/new1.C [new file with mode: 0644]