C9009000: C1001 grammar.c, Line 164

ID Number: Q65641

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 and QuickC

versions 2.5 and 2.51 produce the following internal compiler errors

when the sample program below is compiled with default optimization:

With C 6.0, 6.0a, and 6.0ax

---------------------------

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

(compiler file '@(#)grammar.c:1.138', line 164)

Contact Microsoft Product Support Services

With QuickC 2.5 and 2.51

------------------------

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

(compiler file 'gencode.c', line 437)

Contact Microsoft Product Support Services

STATUS

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

and 6.0ax and QuickC versions 2.5 and 2.51. This problem was

corrected in C/C++ version 7.0.

More Information:

Sample Code

-----------

/* Compile options needed: none

*/

char foo[7];

float test;

void bar(void)

{

test+=foo;

}

The above program is incorrect because it is attempting to do

arithmetic on incompatible types, a float and an address. If you

correct this inconsistency, then the program will compile.

Additional reference words: 6.00 6.00a 6.00ax 2.50