C1001: Internal Compiler Error: MDmisc.c, Line 1340

ID Number: Q30457

5.10

MS-DOS

buglist5.10 fixlist6.00

Problem:

The C version 5.10 compiler produces the following internal compiler

error when the sample program below is compiled:

fatal error C1001: Internal Compiler Error

(compiler file '@(#)MDmisc.c:1.120', line 1340)

Contact Microsoft Technical Support

The error results from the combination of the data_seg pragma and a

huge array. You can work around the problem by using the -ND switch on

the command line instead of using the data_seg pragma.

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

problem was corrected in C version 6.00.

Sample Code

-----------

#pragma data_seg(ack)

long huge i[20000]={0};

foo() {

int j;

i[j] = 0;

}