[Bug c++/84927] [7 Regression] ICE with NSDMI and reference
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 20 18:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84927
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Mar 20 18:13:38 2018
New Revision: 258691
URL: https://gcc.gnu.org/viewcvs?rev=258691&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.
* g++.dg/cpp1y/nsdmi-aggr9.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/nrv19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list