re PR c++/84449 (ICE with constexpr and deleted destructor)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Feb 2018 08:21:36 +0000 (09:21 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Feb 2018 08:21:36 +0000 (09:21 +0100)
commit7f5753d71568610ad29a5cd2af7840d6be26442f
tree2fd070be67ef41eb656524225c03f066f0772be4
parentdda0944cd51484658f2e1d3ec39800fd6709b6af
re PR c++/84449 (ICE with constexpr and deleted destructor)

PR c++/84449
* tree.c (bot_manip): If build_cplus_new or break_out_target_exprs
returns error_mark_node, return it immediately.
(break_out_target_exprs): If cp_walk_tree with bot_manip returns
error_mark_node, return error_mark_node.

* g++.dg/cpp0x/constexpr-84449.C: New test.

From-SVN: r257839
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-84449.C [new file with mode: 0644]