C++ PATCH for c++/64496 (lambda in local class)

Jason Merrill jason@redhat.com
Tue Jan 6 21:34:00 GMT 2015


In this testcase the compiler is confused by the local class and thinks 
that the lambda is in the context of the enclosing function.  Fixed by 
recognizing when a lambda is directly within a local class.

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


More information about the Gcc-patches mailing list