PR c++/77659 - ICE with new and C++14 aggregate NSDMI
commit0bc8e9cfbfa764023ba8c2c7730c579829e48cd5
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Feb 2017 03:31:02 +0000 (12 03:31 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Feb 2017 03:31:02 +0000 (12 03:31 +0000)
tree5b93c54d8db50f37340efb1d9d46397ca795616d
parenteb8728492da08d4f0048e07b7a1406b24877cb71
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245372 138bc75d-0d04-0410-961f-82ee72b054a4
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]