Search

Visual Studio 2010, compiler crash by WojciechSura

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 750224
Opened: 6/21/2012 12:29:17 AM
Access Restriction: Public
1
Workaround(s)
0
User(s) can reproduce this bug
The attached project crashes the compiler.

(Why cannot I select Visual Studio 2010 from the combobox below? Where is the VS 2010 bug report page?)
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012 RC

Steps to reproduce

Try to compile attached project.

Product Language

English

Operating System

Windows 7

Operating System Language

Polish

Actual results

1>------ Build started: Project: DllCompilerCrash, Configuration: Debug Win32 ------
1> C.cpp
1>d:\dokumenty\dev\c++\projekty\win32\dllcompilercrash\dllcompilercrash\c.cpp(13): fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file 'msc1.cpp', line 1420)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Expected results

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
:)
File Attachments
File Name Submitted By Submitted On File Size  
vsinfo.txt 6/21/2012 5 KB
DllCompilerCrash.zip 6/21/2012 7.37 MB
Sign in to post a comment.
Posted by Microsoft on 6/29/2012 at 12:14 PM
Hello Wojciech,
The fix to this bug would only be available in VS11. Thank you for reporting the issue to us and helping us improving our product. Let us know if you have any further questions related to the bug.

regards
Rashid Sarwar
Visual C++ Team
Posted by Wojciech ''Spook'' Sura on 6/26/2012 at 9:50 PM
Will the compiler be available for VS2010 (eg. in newest Windows SDK or as an update)? Or will it be only available in VS11?
Posted by Microsoft on 6/26/2012 at 2:47 PM
Hi:
    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++.
    You can move class 'F' to namespace scope (instead of a local class in function 'C::H') to workaround in VS2010.

Xiang Fan
Visual C++ Team
Posted by Microsoft on 6/26/2012 at 12:06 AM
Thank you for submitting feedback on Visual Studio 11 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 Microsoft on 6/21/2012 at 12: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)
Sign in to post a workaround.
Posted by WojciechSura on 6/21/2012 at 12:35 AM
Remove the structure from inside the method body to the outer scope and the file will compile.