FIX: LOCAL Directive with a Structure (59585)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
This article was previously published under Q59585 SYMPTOMS
On Page Update-42 of the "Microsoft Macro Assembler 5.1 Updates and
Microsoft Editor" manual, it states that you can use the LOCAL directive
with a structure type. When this is done, you may receive the following
errors:
A2003 Unknown Type Specifier
A2010 Syntax Error
CAUSE
This feature was not implemented in MASM versions 5.1 or 5.1a.
RESOLUTION
To avoid the A2003 Unknown type specifier error, include the PTR keyword in
the LOCAL directive. For example:
LOCAL stuff:parms
becomes
LOCAL stuff:ptr parms
STATUS
Microsoft has confirmed this to be a problem in MASM version 5.1. This
problem has been corrected in MASM version 6.0.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbfix KB59585 |
---|
|