C1001 is an internal error in the Visual C++ compiler.
fatal error C1001: An internal error has occurred in the compiler.
Visual C++ error C1001 indicates that the compiler has encountered an internal error. This means that the compiler was somehow unable to correctly handle a particular piece of code. Such errors may be resolvable by disabling optimization, but if your computer hardware is functioning normally (no memory errors, etc.), this is a bug in the compiler, which Visual Studio will (by default) attempt to report to Microsoft.