[Bug c++/71638] [6/7 Regression] ICE on invalid C++ code on x86_64-linux-gnu with -Wall (internal compiler error: non-constant element in constant CONSTRUCTOR)
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 22 14:19:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71638
--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar 22 14:18:17 2018
New Revision: 258772
URL: https://gcc.gnu.org/viewcvs?rev=258772&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/nsdmi14.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr10.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/constexpr.c
More information about the Gcc-bugs
mailing list