[Bug c++/56222] Pointer to member in lambda should not require this to be captured

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 6 11:42:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56222

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2013-02-06 11:42:21 UTC ---
The code looks valid to me, I don't see any reason for capturing something
here. The expression "&Test::y" should be valid in that scope and returns an
rvalue.



More information about the Gcc-bugs mailing list