This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56973] [DR 696] crash when capturing variables in nested lambdas
- 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: Fri, 10 Feb 2017 18:43:13 +0000
- Subject: [Bug c++/56973] [DR 696] crash when capturing variables in nested lambdas
- Auto-submitted: auto-generated
- References: <bug-56973-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Summary|crash when capturing |[DR 696] crash when
|variables in nested lambdas |capturing variables in
| |nested lambdas
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
G++ still implements an early proposal for DR 696, whereby a reference to a
constant automatic variable from a lambda is replaced by the value of the
variable rather than implying a capture. We need to properly implement DR 696
such that odr-use implies a capture.