C9012000: C1001: grammar.c, Line 140

ID Number: Q67781

6.00a 6.00ax | 6.00a

MS-DOS | OS/2

buglist6.00a buglist6.00ax fixlist7.00

Summary:

SYMPTOMS

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

following internal compiler error when the sample program below is

compiled with /Ox or /Oe optimization:

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

(compiler file '../grammar.c', line 140)

Contact Microsoft Product Support Services

RESOLUTION

The following are valid workarounds for this problem:

1. Compile with any optimization not containing /Oe.

-or-

2. Disable the "e" optimization using the optimize pragma.

STATUS

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

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

More Information:

Sample Code

-----------

/* Compile options needed: /Oe

*/

typedef struct utype { char bitmap[10]; } Utype;

extern Utype utypes[];

void InitializeBitmaps(void)

{

int cnt,cnt2;

for(cnt=0;cnt<13;cnt++)

for(cnt2=0;cnt2<10;cnt2++)

utypes[cnt].bitmap[cnt2]=(char)~utypes[cnt].bitmap[cnt2];

}