https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67555
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- You return a lambda that has references to local variables. When you invoke the lambda it accesses variables that are out of scope.