[Bug c++/67555] Emplacement of random numbers in vector displaces other variables (loop counter)

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 12 00:31:00 GMT 2015


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.



More information about the Gcc-bugs mailing list