diff options
author | Jason Merrill <jason@redhat.com> | 2022-01-21 12:49:03 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-01-21 14:40:09 -0500 |
commit | 847a8301add0a316767878342c1367948835c181 (patch) | |
tree | 493d8dfff742fd81b3af794d6c569b61b72f6f0b /gcc/iterator-utils.h | |
parent | c163647ffbc9a20c8feb6e079dbecccfe016c82e (diff) | |
download | gcc-847a8301add0a316767878342c1367948835c181.zip gcc-847a8301add0a316767878342c1367948835c181.tar.gz gcc-847a8301add0a316767878342c1367948835c181.tar.bz2 |
c++: class array new checking [PR104084]
My patch for PR20040 made us stop exiting early from build_new_1 in
cases of trivial initialization if there's a class operator delete; as a
result, code later in the function needs to handle this case properly.
PR c++/104084
PR c++/20040
gcc/cp/ChangeLog:
* init.cc (build_new_1): Only pull out TARGET_EXPR_INITIAL if
alloc_expr is a TARGET_EXPR.
gcc/testsuite/ChangeLog:
* g++.dg/init/new50.C: New test.
Diffstat (limited to 'gcc/iterator-utils.h')
0 files changed, 0 insertions, 0 deletions