BUG: Trailing Commas May Cause Incorrect Error Messages (111500)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q111500 SYMPTOMS
If extra trailing commas are placed at the end of a data declaration
statement, the Microsoft Macro Assembler (MASM) may generate incorrect
error messages, which can include:
error A2207: missing right parenthesis in expression
error A2081: missing operand after unary operator
error A2206: missing operator in expression
error A2050: real or BCD number not allowed
The message given may depend upon the surrounding code. In some cases
the incorrect message is only given when a listing file is generated
(the /Fl switch is used). In other cases the error messages may flag
the wrong line.
RESOLUTION
If an error message seems incorrect, check the indicated line and the
surrounding lines for extra or improperly placed commas.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.1x. We
are researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.
Modification Type: | Minor | Last Reviewed: | 10/14/2003 |
---|
Keywords: | KB111500 |
---|
|