Fix ICE seen in tree-ssa-dce.c for new/delete pair.
authorMartin Liska <mliska@suse.cz>
Mon, 29 Jul 2019 10:39:46 +0000 (12:39 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 29 Jul 2019 10:39:46 +0000 (10:39 +0000)
commitfc5e7d2ac42fbc9169458095f4fff257e4a80d03
tree227a9d03abbe1c957aabd341678253f32a2db636
parent3c2f6fae598f997003b73ab93bb85cb33471f389
Fix ICE seen in tree-ssa-dce.c for new/delete pair.

2019-07-29  Martin Liska  <mliska@suse.cz>

* tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
remove LHS of operator new call.  It's handled latter.
2019-07-29  Martin Liska  <mliska@suse.cz>

* g++.dg/cpp1y/new1.C (test_unused): Add new case that causes
ICE.

From-SVN: r273875
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/new1.C
gcc/tree-ssa-dce.c