[Bug c++/69774] Corrupted 'this' passed through lambda.

guille at cal dot berkeley.edu gcc-bugzilla@gcc.gnu.org
Fri Feb 12 00:11:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69774

--- Comment #1 from Guille <guille at cal dot berkeley.edu> ---
Note that the problem persists if we pass by reference in the lambda, i.e.
using

"t = [&] { std::cerr << &a << " \n"; };"

instead of

"t = [this] { std::cerr << &a << " \n"; };".


More information about the Gcc-bugs mailing list