“this” captured by lambda is incorrect. GCC compiler bug?

前端 未结 2 1542
温柔的废话
温柔的废话 2021-01-01 16:53

For the last few days, I have been debugging a weird issue involving lambdas in C++. I have reduced the problem down to the following symptoms:

  • The
2条回答
  •  既然无缘
    2021-01-01 17:02

    Sounds like the following compiler bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77933 (which only effects code generated with O1 optimizations or higher).

提交回复
热议问题