Home Dashboard Directory Help
Search

C/C++ compiler crashes on simple code by Mārtiņš Možeiko


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 740143
Opened: 5/1/2012 11:47:10 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

Compiler from Visual Studio 2010 SP1 crashes on following simple code when compiling with /O2

int main()
{
int x = 2;
    
    while (x != -1)
    {
        switch (x)
        {
            case 2:
            {
                x = -1;
                break;
            }
        }
    }
}
Details
Sign in to post a comment.
Posted by Microsoft on 5/2/2012 at 5:06 PM
Thanks for taking the time to report this. I was able to reproduce the crash using VS2010 SP1. I can confirm that this issue has been fixed and the problem does not reproduce with the upcoming VS2012 release (Beta downloads now available).

thanks,
ian Bearman
Principal Developer
VC++ Code Generation & Optimization
Posted by MS-Moderator07 [Feedback Moderator] on 5/2/2012 at 2:06 AM
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 5/2/2012 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.