FIX: C1001: reg86.c, line 4479, 4600

Last reviewed: September 18, 1997
Article ID: Q114076
7.00 | 1.00 MS-DOS | WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

  • The Microsoft C/C++ Compiler (CL.EXE), included with:

        - Microsoft C/C++ for MS-DOS, version 7.0
        - Microsoft Visual C++ for Windows, versions 1.0
    

SYMPTOMS

The compiler generates the following internal compiler error message when the sample program below is compiled. The C/C++ 7.0 compiler generates:

   fatal error C1001: INTERNAL COMPILER ERROR
      (compiler file '@(#)reg86.c:1.26', line 4479)

The C/C++ 8.0 compiler generates:

   fatal error C1001: internal compiler error
      (compiler file '@(#)reg86.c:1.26', line 4600)

The internal compiler error occurs when using the optimizing compiler regardless of optimizations being used.

RESOLUTION

To avoid the error, use the fast compiler instead of the optimizing compiler. Use of the fast compiler can be forced by using the /f compiler switch. Note that you can still use optimizations even though you are using the fast compiler.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed above. This problem was corrected in Visual C++ version 1.5.

Sample Code

/* Compile options needed: /c /f-
*/

typedef struct sname1
    {
    long lField11;
    long lField12;
    long lField13;
    long lField14;
    long lField15;
    } Table1;

typedef struct sname2
    {
    long lField21;
    long lField22;
    long lField23;
    long lField24;
    long lField25;
    char cField26;
    } Table2;

void func1(long);
int func2(int *, Table1 *);
void func(int lParam1, Table2 * ptabParam2);

Table1 LevelLists[4];

void func(int lParam1, Table2 * ptabParam2)
{
    {
        func1(ptabParam2->lField25 - 8L);
    }
    lParam1= func2(&lParam1, &LevelLists[((ptabParam2->cField26)&3)]);
}


Additional reference words: 7.00 8.00 1.00
KBCategory: kbtool kbfixlist kbbuglist
KBSubcategory: CLIss
Keywords : CLIss kb16bitonly kbbuglist kbfixlist kbtool
Version : 7.00 | 1.00
Platform : MS-DOS WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.