Home Dashboard Directory Help
Search

Lambda ICE by _NN_


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 687344
Opened: 9/6/2011 12:12:52 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

These pieces of code lead to ICE:

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

    return 0;
}

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

    E p = b;

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

    return 0;
}
Details
Sign in to post a comment.
Posted by MS-Moderator09 [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(http://support.microsoft.com)
Sign in to post a workaround.