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

2016-02-12 Thread guille at cal dot berkeley.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69774 Guille changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

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

2016-02-11 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69774 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #2 from TC ---

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

2016-02-11 Thread guille at cal dot berkeley.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69774 --- Comment #1 from Guille --- 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"; };".