This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
- 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, 13 Feb 2017 22:31:44 +0000
- Subject: [Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
- Auto-submitted: auto-generated
- References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 13 22:31:12 2017
New Revision: 245410
URL: https://gcc.gnu.org/viewcvs?rev=245410&root=gcc&view=rev
Log:
PR c++/79461 - ICE with lambda in constexpr constructor
* constexpr.c (build_data_member_initialization): Ignore
initialization of a local variable.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c