C9101000: C1001: mactab.c, Line 482

ID Number: Q68073

6.00 6.00a 6.00ax | 6.00 6.00a

MS-DOS | OS/2

buglist6.00 buglist6.00a buglist6.00ax fixlist7.00

Summary:

SYMPTOMS

The Microsoft C Compiler versions 6.0, 6.0a, and 6.0ax produce the

following internal compiler error when the sample program below is

compiled for compact (/AC) or large (/AL) memory model with /Ol and

/Oe optimization:

file.c(9) : fatal error C1001: Internal Compiler Error

(compiler file '@(#)mactab.c1.70', line 482)

Contact Microsoft Product Support Services

RESOLUTION

Disabling either /Ol or /Oe optimization will eliminate this error.

STATUS

Microsoft has confirmed this to be a problem in C versions 6.0, 6.0a,

and 6.0ax. This problem was corrected in C/C++ version 7.0.

More Information:

Sample Code

-----------

/* Compile options needed: /AL /Ol /Oe

*/

void func2(int);

void func1(void)

{

int high, low=0, mid, len, * word;

while (mid)

{

mid=low+high;

len=word[mid+1]-word[mid];

if(len) while(mid) func2(len);

else low=5 ;

}

}