VS2013: fatal error C1001: An internal error has occurred in the compiler

The code is quite simple:

int main(void){
    return 0;

and the compile error goes:

1>------ Build started: Project: Project1, Configuration: Debug Win32 ------
1>  Source.cpp
1>c:\userdata\zdck\documents\visual studio 2013\projects\project1\project1\source.cpp : fatal error C1001: An internal error has occurred in the compiler.
1>  (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p0io.c', line 2807)
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 ==========

I have no driver F but there comes an error in f:\dd\vctools\compiler\cxxfe\sl\p1\c\p0io.c??

Believe in me that I have checked dozens of posts with title "C1001 blah blah..." here and there but no one works for me.

My VS: V2013 Version 12.0.40629.00 Update 5 My OS: win 10, 64 bit

snapshot of the error


  • The error C1001 related to compiler file p0io.c is mainly caused by enabling Use Unicode UTF-8 for worldwide language supportin Region Settings. You could see the link about the concrete reason. You could click Time &Language -> Region-> Additional date, time, &regional settings-> Region-> Administrative->Change system locale and turn off UTF-8.

    enter image description here

    If the error couldn’t be fixed, I suggest that you could update your VS version to VS2019.