re PR c++/84927 (ICE with NSDMI and reference)
authorMarek Polacek <polacek@redhat.com>
Mon, 19 Mar 2018 20:46:16 +0000 (20:46 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 19 Mar 2018 20:46:16 +0000 (20:46 +0000)
commitac9ec1988a6d0add2eb724a5d1a9d06101623c51
treea3847b60c31c362e39f3aea067f15282fcf7b0c0
parente5cc0d5453f3a79902522c719fe4fd5765b689b3
re PR c++/84927 (ICE with NSDMI and reference)

PR c++/84927
* constexpr.c (cxx_eval_bare_aggregate): Update constructor's flags
as we evaluate the elements.
(cxx_eval_constant_expression): Verify constructor's flags
unconditionally.

* g++.dg/cpp1y/nsdmi-aggr9.C: New test.

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