Home Dashboard Directory Help

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


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 746680
Opened: 6/5/2012 8:33:06 AM
Access Restriction: Public
User(s) can reproduce this bug


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
Sign in to post a workaround.
Posted by Ike Starnes on 6/11/2012 at 7:41 AM
If you remove the "const", then the error / crash goes away.
File Name Submitted By Submitted On File Size  
RasterColor.zip (restricted) 6/5/2012 -
RasterColor.cpp (restricted) 6/5/2012 -
TestComponent.zip 6/7/2012 2 KB