Internal Compiler error (C1001) and sometimes crash with VS2012 - by Ike Starnes

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.


1
0
Sign in
to vote
ID 746680 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 6/5/2012 8:33:06 AM
Access Restriction Public

Description

When I try to compile my C++ / CX WinRT component with the latest VS2012 RC build, I get Internal Compiler error (C1001) and sometimes VS crashes.
Sign in to post a comment.
Posted by Microsoft on 6/26/2012 at 3:04 PM
Hi Ike,
    Thanks for reporting the issue.
    The compiler fails to give the following error:

error C4400: 'const TestComponent::RasterColor' : const/volatile qualifiers on this type are not supported

    A fix for this issue has been checked into the compiler sources and you will get the above error.

    In the meantime, please remove 'const' in the following code (or you can change the function to 'internal'). 'const' is not supported in winmd.

static String^ GetStringDescription(const RasterColor color);

Xiang Fan
Visual C++ Team
Posted by BullyOwner on 6/7/2012 at 12:02 PM
I simplified the problem with the attached project.
Posted by Ike Starnes on 6/7/2012 at 10:36 AM
I've tried on a 2nd computer, to make sure that it was not a hardware or operating system install issue.
This is now officially a blocking issue for me. I cannot continue my development for WinRT until this is resolved.
Posted by Microsoft on 6/5/2012 at 7:10 PM
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)
Posted by BullyOwner on 6/5/2012 at 8:40 AM
Also, after several of these C1001 errors, I then get this:
1>cl : Command line error D8040: error creating or communicating with child process