https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66999
sshannin at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sshannin at gmail dot com --- Comment #1 from sshannin at gmail dot com --- Confirmed still present in gcc 5.3.0. I got a smaller example with a slightly different flavor if it helps: --- #include <functional> struct foo { void bar() { std::function<void()> f = std::function<void()>( [&this]() { int x; }); } };