The information in this article applies to:
SYMPTOMSThe example below will generate the warning: when assembled with Microsoft Macro Assembler (MASM) 5.1 and 5.1a. This warning is misleading. MASM 6.0, 6.0a, and 6.0b generate the more specific error message:
CAUSEThe reference to a_struc.a in the example below is a reference to a structure template and not to a variable stored in memory. Thus, a_struc.a is a constant or immediate operand. MASM 5.1 and 5.1a always looks up the second token on the line first. In the case below, it sees "a_struc". Because a_struc is a structure declaration, MASM assumes the line declares a structure instance with "MOV" being the label. At this point, MASM errors on trying to use reserved symbol "MOV" as a structure instance label. RESOLUTIONThis is the expected behavior of MASM. MORE INFORMATIONSample Code
Additional query words: 5.10 5.10a 6.00 6.00a 6.00b
Keywords : |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |