C++ Lambda unable to access parts of types in containing method - by Andy Champ

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 674241 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 6/6/2011 1:51:50 AM
Access Restriction Public


A lambda inside a class or struct cannot access the members of a type defined in the containing method.  This is shown by compiling the code in "Steps to Reproduce".
Sign in to post a comment.
Posted by Microsoft on 6/20/2011 at 6:06 PM
Hi Andy,
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by MS-Moderator07 [Feedback Moderator] on 6/6/2011 at 8:28 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Posted by MS-Moderator01 on 6/6/2011 at 3:49 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)