init.c (build_new_1): Do not check for arithmetic overflow if inner array size is 1.
authorFlorian Weimer <fweimer@redhat.com>
Wed, 7 Nov 2012 09:45:57 +0000 (10:45 +0100)
committerFlorian Weimer <fw@gcc.gnu.org>
Wed, 7 Nov 2012 09:45:57 +0000 (10:45 +0100)
commit92d38f386bb23d45f15326edac74449064a6429d
tree712ee66f5a475c777251a49b6a28cdc8f3c3b420
parent7d57274b36a1aac0e2c38ab1073ce12b29f97ff4
init.c (build_new_1): Do not check for arithmetic overflow if inner array size is 1.

* init.c (build_new_1): Do not check for arithmetic overflow if
inner array size is 1.

* g++.dg/init/new40.C: New.

From-SVN: r193287
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/new40.C [new file with mode: 0644]