C++ PATCH for c++/54276 (link error with lambda and static var)

Jason Merrill jason@redhat.com
Fri Feb 15 19:22:00 GMT 2013


Like 52026, the problem here is that we have a reference to an outer 
variable in the lambda and can't instantiate it properly.  And like 
52026, the solution is to look up the variable again at instantiation time.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 54276.patch
Type: text/x-patch
Size: 2509 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130215/c4fcc625/attachment.bin>


More information about the Gcc-patches mailing list