[Nasm-bugs] [Bug 3392625] New: %xdefine behavior changed after last commit's (maybe bug, maybe feature :)

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Sun Oct 20 10:51:48 PDT 2019


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

            Bug ID: 3392625
           Summary: %xdefine behavior changed after last commit's (maybe
                    bug, maybe feature :)
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: bc-info at styx.cabel.net
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Binary from nasm.us

%define VAR_OLD  10
%xdefine VAR_VAL  (4 * VAR_OLD)
%undef VAR_OLD
  dd VAR_VAL


----
In stable version - work. In current development, produce error:
test.nasm:4: symbol `VAR_OLD' not defined

Replace %define to %assign (1st line in example) gives the same effect

-- 
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