Microsoft KB Archive/839283

= BUG: You may receive a &quot;fatal error C1001: internal compiler error&quot; error message when you build a project with the Minimal Rebuild option in Visual C++ .NET 2002 and in Visual C++ .NET 2003 =

Article ID: 839283

Article Last Modified on 3/19/2007

-

APPLIES TO


 * Microsoft Visual C++ .NET 2003 Standard Edition
 * Microsoft Visual C++ .NET 2002 Standard Edition

-





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 &quot;Applies to&quot; section.



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

<div class="references_section">