Error A2065:Label Cannot Have Segment Override

ID Number: Q26656

4.00 5.00

MS-DOS

buglist4.00 fixlist5.00

Problem:

The error 'A2065:Label cannot have segment override' is given for

the construct 'fred dd far ptr ?'. Under MASM Version 4.00, the

assembler did not generate an error message.

Response:

The FAR type for the PTR operator should not be used in a data

declaration. The type DWORD can replace FAR type to correct the

declaration. MASM 5.00 will generate an error, but MASM 4.00 failed

to detect this situation.