Invalid Object Module
ID Number:  Q11537

4.00
MS-DOS


Problem:

The following code sample assembles without any error, but produces
the error "Invalid object module" when linking (the code should
produce an error at assemble time because "data" is not defined): 

   _data  segment 'data'
   _data  ends

   code   segment 'code'
          ASSUME CS:code
          mov ax, data
          mov ds, ax
   code   ends

          end
Response:

The assembler is producing a bad fixup record for the code "mov ax,
data". The assembler appears to be inappropriately using the class
type identifier "data" from the "_data" segment declaration. 

Microsoft has confirmed this to be a problem in Version 4.00. This
problem was corrected in Version 5.00.

A workaround for this problem is to not use "data" as a class type name. 
