Microsoft KB Archive/122042

From BetaArchive Wiki
Knowledge Base


BUG: You may receive the "fatal error C1001" error message if you use /Zg switch when you compile a .cpp file which includes a large amount of header file information in Visual C++

Article ID: 122042

Article Last Modified on 8/9/2005



APPLIES TO

  • Microsoft Visual C++ 1.5 Professional Edition
  • Microsoft Visual C++ 1.51
  • Microsoft Visual C++ 1.0 Professional Edition
  • Microsoft Visual C++ 2.0 Professional Edition
  • Microsoft Visual C++ 4.0 Standard Edition
  • Microsoft Visual C++ 4.1 Subscription
  • Microsoft Visual C++ 4.2 Professional Edition
  • Microsoft Visual C++ 6.0 Service Pack 5
  • Microsoft Visual C++ 5.0 Standard Edition



This article was previously published under Q122042

SYMPTOMS

Compiling a .CPP file that includes a large amount of header file information may cause the compiler to generate a C1001 error when using the /Zg switch to generate function prototypes.

  • In Visual C++ 32-bit edition, version 6.0, the error message might appear as follows:

    fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 1786)

    Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information.
  • In Visual C++ 32-bit edition, version 5.0, the error message might appear as follows:

    fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 1188)

    Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information.
  • In Visual C++ 32-bit edition, version 4.x (Compiler version 10.00), the error message might appear as follows:

    fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 899)

    Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information.
  • In Visual C++ 32-bit edition, version 2.0 (Compiler version 9.00), the error message appears as follows:

    fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 1056)

    Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information.
  • In Visual C++ 32-bit edition, version 1.0 (Compiler version 8.00), the error message appears as follows:

    fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 602)

    Please choose the Technical Support command on the Visual Workbench Help menu, or open the Technical Support help file for more information.
  • In Visual C++ for Windows, versions 1.5 and 1.51 (Compiler version 8.00c), the error message appears as follows:

    fatal error C1001: INTERNAL COMPILER ERROR
    (compiler file 'msc1.cpp', line 585)


RESOLUTION

Avoid using /Zg with a large amount of header file information, such as the MFC class library headers.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: 8.00 8.00c 9.00 10.00 10.10 10.20 afxwin afxcoll afxwin 338 afxcoll 602 81 66 1056

Keywords: kberrmsg kbtshoot kbbug KB122042