Symptoms
When you build a Visual C++ project in Visual Studio 2013 Update 5 that uses certain types from a .NET assembly, you may receive the following error message:
fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\esu.c', line 6378)Resolution
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.here.
To resolve this problem, install this hotfix fromWorkaround
To work around this issue, don't use the last type referenced in the error message. Using that type in other .NET languages, such as C#, isn't affected by this issue. Therefore, a shim assembly can be created to provide indirect access to the affected type.
References
For more information about Visual Studio 2013 Update 5, see Description of Visual Studio 2013 Update 5.