BUG: You may receive a "fatal error C1001: internal compiler error" error message when you try to build an application in Visual C++ .NET 2003 (843408)
The information in this article applies to:
- Microsoft Visual C++ .NET (2003)
SYMPTOMSWhen you try to build an application in Microsoft Visual C++ .NET
2003, you may receive the following error message: fatal
error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line
2701) Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information When you use the typedef statement to create an alias for a
data type, and then you try to declare a class with the same alias name, a problem may occur.
Instead of generating a meaningful error, the compiler incorrectly generates an internal compiler error when you try to build your Visual C++ .NET 2003 application. CAUSETypically, you notice the error message that is mentioned in the "Symptoms" section in a
Visual C++ .NET 2003 project when you declare the CString class, and then you try
to build your project. In Microsoft Foundation Classes (MFC) 7.0, the CString
class is rewritten based on the CStringT template class. CString is
the name of an alias that is used with a typedef statement in the Afxstr.h
header file that is included in your project by the Stdafx.h header file.
Therefore, if you try to declare a class that is named CString, and then you try to build
your project, you receive the error message that is mentioned in the "Symptoms"
section.WORKAROUNDIn your Visual C++ .NET 2003 project, remove the declaration statement that you used to
declare the class that has the same name as the alias that you created in
the typedef statement.STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCESFor additional information, visit the following Microsoft
Developer Network (MSDN) Web sites: CStringT class Shared classes Breaking changes in ATL 7.0 and MFC 7.0 since Visual C++
6.0
Modification Type: | Minor | Last Reviewed: | 1/18/2006 |
---|
Keywords: | kbtemplate kbCompiler kberrmsg kbbug KB843408 kbAudDeveloper |
---|
|