https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84927
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Thu Mar 22 14:17:03 2018 New Revision: 258771 URL: https://gcc.gnu.org/viewcvs?rev=258771&root=gcc&view=rev Log: 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. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr9.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/constexpr.c