BUG: You may receive a "fatal error C1001: internal compiler error" error message when you build a project with the Minimal Rebuild option in Visual C++ .NET 2002 and in Visual C++ .NET 2003 (839283)



The information in this article applies to:

  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)

SYMPTOMS

When you rebuild a project by using the Minimal Rebuild compiler option with the Force Includes compiler option of the precompiled header in Microsoft Visual C++ .NET 2002 and in Microsoft Visual C++ .NET 2002, you may receive the following error message:
fatal error C1001: INTERNAL COMPILER ERROR

WORKAROUND

To work around this problem, remove the Gm compiler switch (/Gm) for the project. To do this, follow these steps:
  1. In Solution Explorer, click the project name.
  2. On the Project menu, click Properties.
  3. In the Property Pages dialog box for the project, click the C/C++ folder, and then click Code Generation.
  4. In the right pane, click Enable Minimal Rebuild, click the down arrow button, and then click No.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to reproduce the problem

  1. Create a new Win32 project.
  2. Confirm that the project is set for minimum rebuild. To do this, follow steps 1 through 3 in the "Workaround" section.
  3. Add the stdafx.h file as a forced include file. To do this, follow these steps:
    1. In Solution Explorer, click the project name.
    2. On the Project menu, click Properties.
    3. In the project Property Pages dialog box, click the C/C++ folder, and then click Advanced.
    4. In the right pane, click Force Includes and then click the ellipsis button (...).
    5. In the Force Includes dialog box, type stdafx.h, and then click OK.
  4. Rebuild the project.

REFERENCES

For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:

Modification Type:MinorLast Reviewed:1/6/2006
Keywords:kbCompiler kbbug KB839283 kbAudDeveloper kbAudEndUser