PR c++/84927
commit8ea8d065cbb86a324ff141c4d273734b595f61a1
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Mar 2018 18:13:38 +0000 (20 18:13 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Mar 2018 18:13:38 +0000 (20 18:13 +0000)
treecb02f82151fa7f7bd4cef7375f6174ef7a066af4
parentced7e116d3bd6edba07d10a993279e5cd3f48d12
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258691 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/nrv19.C [new file with mode: 0644]