[Nasm-bugs] [Bug 3392623] git nasm: %xdefine macro(a) (a) expands a

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu Oct 17 01:34:07 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392623

C. Masloch <pushbx at ulukai.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |OPEN
                 CC|                            |pushbx at ulukai.org
         Resolution|FIXED                       |---

--- Comment #2 from C. Masloch <pushbx at ulukai.org> ---
This fix breaks the common %xdefine usage of appending to a list. Here, nasm is
https://repo.or.cz/nasm.git/commitdiff/18f413422221063d524f7a5b08bece5f8604af27
and patnasm is the same but with
https://repo.or.cz/nasm.git/commitdiff/e86fa7fffd1789e3b9b2c584d4401dbb6fc92186
reverted.

$ cat test.asm
%define list "", ""
%xdefine list list, "abc", "123"
%xdefine list list, "def", "456"

%error list
$ nasm -v
NASM version 2.15rc0 compiled on Oct 17 2019
$ nasm test.asm
test.asm:5: error: list, "def", "456"
$ patnasm -v
NASM version 2.15rc0 compiled on Oct 17 2019
$ patnasm test.asm
test.asm:5: error: "", "", "abc", "123", "def", "456"
$ oldnasm -v
NASM version 2.14.03rc2 compiled on Aug 31 2019
$ oldnasm test.asm
test.asm:5: error: "", "", "abc", "123", "def", "456"
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list