C9005000: C1001: main.c, Line 807

ID Number: Q62180

6.00 | 6.00

MS-DOS | OS/2

buglist6.00 fixlist6.00a

Summary:

SYMPTOMS

The Microsoft C Compiler version 6.0 produces the following internal

compiler error when the sample program below is compiled with

optimization disabled (/Od):

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

(compiler file '@(#)main.c:1.176', line 807)

Contact Microsoft Product Support Services

RESOLUTION

As a workaround, the optimize pragma can be used to turn off all

optimizations before the function, as follows:

#pragma optimize ("", off)

STATUS

Microsoft has confirmed this to be a problem in C version 6.0. This

problem was corrected in C version 6.0a.

More Information:

Sample Code

-----------

/* Compile options needed: /Od

*/

void main (void)

{

_asm

{

fscale

label1:

fprem

}

}

Additional reference words: 6.00