This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]