Include File Name Contains "&" in Macro Definition Problem

ID Number: Q23475

4.00

MS-DOS

buglist400

Question:

If an INCLUDE statement occurs within a macro definition

and the INCLUDE file name contains ampersands (&), the

ampersands are removed from the file name and MASM uses the

new file name to search for the include file, e.g. the

statement "INCLUDE TES&T&.INC" within a macro definition.

MASM includes TEST.INC and produces "error 1: Extra

characters on line".

This behavior differs from MASM Version 3.01. What is

the correct behavior?

Response:

Microsoft confirmed this to be a problem in Version 4.00

of the Macro Assembler. The problem was corrected in

Version 5.00.