[Bug c++/53097] [c++0x] Missed optimization: lambda closure object could be smaller

shachar at shemesh dot biz gcc-bugzilla@gcc.gnu.org
Wed May 21 17:36:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53097

Shachar Shemesh <shachar at shemesh dot biz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shachar at shemesh dot biz

--- Comment #2 from Shachar Shemesh <shachar at shemesh dot biz> ---
I should point out that I found this bug because I came here to file the exact
same one.

I actually don't think this is so difficult. In cases of pass by reference and
local variables use, just pass the frame pointer, and use the same frame
pointer relative offsets you would in the main function also in the lambda.

Shachar



More information about the Gcc-bugs mailing list