[Bug c++/53157] within lambda, error: lvalue required as unary ‘&’ operand
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Target Milestone|--- |8.0 --- Comment #7 from Jason Merrill --- Fixed for GCC 8, I don't think we need this testcase as well as the others.
[Bug c++/53157] within lambda, error: lvalue required as unary ‘&’ operand
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Paolo Carlini changed: What|Removed |Added CC||paolo.carlini at oracle dot com --- Comment #6 from Paolo Carlini --- Jason, we now accept this. Should we resolve it for 8? In case we may want to add a testcase.
[Bug c++/53157] within lambda, error: lvalue required as unary ‘&’ operand
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Paolo Carlini changed: What|Removed |Added CC||abyss.7 at gmail dot com --- Comment #5 from Paolo Carlini --- *** Bug 58894 has been marked as a duplicate of this bug. ***
[Bug c++/53157] within lambda, error: lvalue required as unary ‘&’ operand
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 bartek 'basz' szurgot changed: What|Removed |Added CC||gcc at baszerr dot eu --- Comment #4 from bartek 'basz' szurgot --- issue still present in GCC 7.1.0.
[Bug c++/53157] within lambda, error: lvalue required as unary ‘&’ operand
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Patrick Palka changed: What|Removed |Added CC||blastrock at free dot fr --- Comment #3 from Patrick Palka --- *** Bug 70121 has been marked as a duplicate of this bug. ***
[Bug c++/53157] within lambda, error: lvalue required as unary ‘’ operand
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #2 from Jason Merrill jason at gcc dot gnu.org 2013-03-23 19:31:28 UTC --- G++ currently implements an early proposed resolution of issue 696; some people suggested that a mention of a constant variable from an enclosing scope that is not explicitly captured should be replaced with its value (as an rvalue). That's what's causing the error you see. To fix this properly, we need to improve the compiler to distinguish between mentions that are odr-uses and those that are not.
[Bug c++/53157] within lambda, error: lvalue required as unary ‘’ operand
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed||2012-04-29 Ever Confirmed|0 |1 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2012-04-29 14:41:12 UTC --- (In reply to comment #0) (1) for the call to f(N); : error: lvalue required as unary ‘’ operand This error is wrong, so confirmed. (2) at the end of the lambda : error: expected ‘;’ before ‘}’ token This error is correct, the example is wrong. I've asked the C++ project editor to fix the working draft: https://github.com/cplusplus/draft/pull/12