https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70735
Maurice <m-ou...@m-ou.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m-ou...@m-ou.se --- Comment #12 from Maurice <m-ou...@m-ou.se> --- It even seems to make a copy of non-copyable objects: #include <iostream> #include <mutex> int main() { static std::mutex a; std::cout << (void*)&a << std::endl; void (*f)(int) = [&] (auto) { std::cout << (void*)&a << std::endl; }; f(0); } Gave the output: 0x600e00 0x600dc0 (gcc version 6.1.1 20160501)