C9109003: C1001: regMD.c, Line 2933

ID Number: Q76503

6.00 6.00a 6.00ax | 6.00 6.00a

MS-DOS | OS/2

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

Summary:

PROBLEM ID: C9109003

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 any memory model with any of the following

optimizations: /Oa, /Oc, /Oi, /On, /Op, /Or, /Ot, /Ow, or /Oz.

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

(compiler file '@(#)regMD.c:1.110', line 2933)

Contact Microsoft Product Support Services

RESOLUTION

This error may be eliminated with the following workarounds:

- Compile with one of the following optimizations: Od, Oe, Ol, Os,

or Ox.

-or-

- Compile with the /qc (quick compile) option.

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 version 7.0.

More Information:

Sample Code

-----------

/* Compile options needed: /Oa, /Oc, /Oi, /On, /Op, /Or, /Ot, /Ow or

/Oz.

*/

static unsigned su1;

void Test( unsigned ui)

{

unsigned long ul;

static unsigned su2;

ul = su2 * 0x10000L;

ul += ui;

ul -= su1;

ul = ((ul * 5) + 1) / 2;

}

Additional reference words: 6.00 6.00a 6.00ax