BUG: Continuation Char with Initializing Structures (75601)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q75601 SYMPTOMS
When initializing a structure in the Microsoft Macro Assembler (MASM),
if the initializers are written on separate lines, one or more of the
following errors may occur:
MASM 6.x A2045: missing angle bracket or brace in literal
MASM 6.x A2009: syntax error in expression
MASM 5.x A2105: expected: instruction, directive or label
RESOLUTION
To work around this problem, either use the backslash (\) line
continuation character following a comma, or with MASM 6.0 and later
use curly braces in place of the angle brackets. Curly braces are a
legal substitute syntax for angle brackets. The sample code below
illustrates the problem syntax and the workaround.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 5.1,
5.1a, 6.0, 6.0a, 6.0b, 6.1, 6.1a, and 6.11. We are researching this
problem and will post new information here in the Microsoft Knowledge
Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 10/22/2003 |
---|
Keywords: | KB75601 |
---|
|