C++ PATCH for c++/54764, 55972 (lambda in class but non-function context)

Jason Merrill jason@redhat.com
Sun Mar 17 01:48:00 GMT 2013

Previously when we encountered a lambda in a class but outside a 
function we treated it as being in the enclosing namespace scope, which 
led to access errors in 55972.  Fixing that meant properly giving it the 
class scope, which meant marking it as a lambda type sooner, which made 
it straightforward to fix 54764 as well.

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

More information about the Gcc-patches mailing list