PRB: Inconsistent Communal Variable Declarations

ID Number: Q26269

5.00

MS-DOS

buglist5.00 fixlist5.10

Summary:

SYMPTOMS

There seems to be some inconsistency in the way that communal

variables are declared. Below is the .ASM file that produces the

error, followed by a partial listing that illustrates the error:

.MODEL SMALL

.DATA

DEFCOMM MACRO M,T

COMM M:T

ENDM

DEFEXT MACRO M,T

EXTRN M:T

ENDM

DEFCOMM X1,BYTE

DEFCOMM <X2>,BYTE

DEFEXT X3,BYTE

DEFEXT <X3>,BYTE

END

;**************************************************************

.MODEL SMALL

0000 .DATA

DEFCOMM MACRO M,T

COMM M:T

ENDM

DEFEXT MACRO M,T

EXTRN M:T

ENDM

DEFCOMM X1,BYTE

DEFCOMM <X2>,BYTE

1 COMM X2:BYTE

tje.asm(13): error A2027: Operand Expectd

DEFEXT X3,BYTE

DEFEXT <X3>,BYTE

0000 END

STATUS

Microsoft has confirmed this to be a problem in MASM version 5.0.

This problem was corrected in version 5.1.

Additional reference words: 5.00 5.10