PR c++/77659 - ICE with new and C++14 aggregate NSDMI
authorJason Merrill <jason@redhat.com>
Sun, 12 Feb 2017 03:31:02 +0000 (22:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 12 Feb 2017 03:31:02 +0000 (22:31 -0500)
commit817a77e41e22599a66610617b1112bb76850ff26
tree5b93c54d8db50f37340efb1d9d46397ca795616d
parent95bbcf58810306bb5f0c24e67620a9e710b0d691
PR c++/77659 - ICE with new and C++14 aggregate NSDMI

* init.c (build_new): Make backups of any CONSTRUCTORs in init.
(build_new_1): Use replace_placeholders.
* tree.c (replace_placeholders_t): Also track whether we've seen a
placeholder.
(replace_placeholders, replace_placeholders_r): Adjust.
* cp-tree.h: Adjust.

From-SVN: r245372
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr6.C [new file with mode: 0644]