This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80829] [7/8 Regression] Use of constexpr constructors with base type instantiation fails compilation
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Jun 2017 20:55:53 +0000
- Subject: [Bug c++/80829] [7/8 Regression] Use of constexpr constructors with base type instantiation fails compilation
- Auto-submitted: auto-generated
- References: <bug-80829-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80829
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jun 19 20:55:21 2017
New Revision: 249386
URL: https://gcc.gnu.org/viewcvs?rev=249386&root=gcc&view=rev
Log:
PR c++/80829 - ICE with constexpr copy of base subobject.
* constexpr.c (clear_no_implicit_zero): New.
(cxx_eval_call_expression): Call it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-base5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c