[Bug c++/56973] [DR 696] crash when capturing variables in nested lambdas

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 10 18:43:00 GMT 2017


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.


More information about the Gcc-bugs mailing list