FIX: Internal Compiler Error C1001: REG86.C, Line 3154

ID: Q115142

1.00 WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

Compiling the source code shown at the end of this article generates the following internal compiler error:

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

RESOLUTION

One of the following methods may be used to resolve the internal compiler error:

STATUS

Microsoft has confirmed this to be a problem with the Microsoft products listed above. The problem was corrected in Visual C++ for Windows, version 1.5.

MORE INFORMATION

The following sample code can be used to demonstrate this problem:

Sample Code

   /* Compile options needed: /Ot /c (/DFIX to use workaround)
   */ 

   extern char m[];

   //#pragma optimize("",off)

   int func(char *vector, long value)
   {
       long idx = value;

   #ifdef FIX
       char temp1, temp2;

       temp1 = idx >> 3;
       temp2 = m[idx&7];

       vector[temp1] |= temp2;
   #else
       vector[idx >> 3] |= m[idx&7];
   #endif
   }
   //#pragma optimize("",on)

Additional reference words: 1.00 8.00 KBCategory: kbtool kbfixlist kbbuglist KBSubcategory: CLIss
Keywords          : kb16bitonly kbCompiler kbbuglist kbfixlist
Version           : 1.00
Platform          : WINDOWS
Solution Type     : kbfix

Last Reviewed: September 22, 1997