Microsoft KB Archive/120071

= BUG: Record Instance Cannot Have Same Name as a Record Field =

Article ID: 120071

Article Last Modified on 2/11/2004

-

APPLIES TO


 * Microsoft Macro Assembler 6.1 Standard Edition
 * Microsoft Macro Assembler 6.11 Standard Edition

-



This article was previously published under Q120071



SYMPTOMS
A record instance cannot have the same name as a record field, but a structure can have the same instance name as a structure field. If you give a record the same name as a record field, the following error is generated:

A2008: syntax error



STATUS
Microsoft has confirmed this to be a bug in MASM versions 6.1 and 6.11. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The following sample code can be used to demonstrate the problem.

Sample Code
; Assemble options needed: none

record1 record recfield1:2, recfield2:2, recfield3:2

recfield1 record1 <1, 2, 3> ; <-- syntax error

structure1 struct strfield1 dw ? structure1 ends strfield1 structure1 <>     ; <-- Ok   recfield1 structure1 <>      ; <-- syntax error

Additional query words: 6.10 buglist6.10 buglist6.11

Keywords: KB120071

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.