https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70735
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-04-20 Known to work| |4.9.3, 5.3.0 Summary|problem combining |[5/6/7 Regression] problem |std::function, generic |combining std::function, |lambdas and static |generic lambdas and static |variables |variables Ever confirmed|0 |1 Known to fail| |5.3.1, 6.0, 7.0 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I can reproduce this with 5.3.1 and later, but not 5.3.0 As requested at https://gcc.gnu.org/bugs/ please provide the output of 'gcc -v', on both Debian and Arch, because I don't think you're using 5.3.0