PR c++/71638, ICE with NSDMI and reference.
authorMarek Polacek <polacek@redhat.com>
Wed, 21 Mar 2018 07:09:22 +0000 (07:09 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 21 Mar 2018 07:09:22 +0000 (07:09 +0000)
commit1bdbef090299990b1fdef6323bb3daa48acf9349
tree704a2e97123b62562f6c6b058dd39f83366135eb
parent3b8acdf9441857ca1d78d54091ad55daa3c20416
PR c++/71638, ICE with NSDMI and reference.

* constexpr.c (cxx_eval_bare_aggregate): Update constructor's flags
even when we replace an element.

* g++.dg/cpp0x/nsdmi14.C: New test.
* g++.dg/cpp1y/nsdmi-aggr10.C: New test.

From-SVN: r258703
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi14.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr10.C [new file with mode: 0644]