Lambda ICE - by _NN_

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 687344 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 9/6/2011 12:12:52 AM
Access Restriction Public


These pieces of code lead to ICE:

int main()
    enum E { a, b, c };
    auto parseArgs = []() { E p = a; };

    return 0;

int main()
    enum E { a, b, c };

    E p = b;

    [&]() { (E&)p = a; }();

    return 0;
Sign in to post a comment.
Posted by EricLeong [Feedback Moderator] on 9/6/2011 at 8:12 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 9/6/2011 at 12:42 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(