[Nasm-bugs] [Bug 3392833] if/else has no branches trigger when using empty %1 via fn()

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Mon Mar 6 15:56:43 PST 2023


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

--- Comment #1 from Michael <mikar_gibbros at yahoo.com> ---
%macro exit 0-1
  %if 0 = 1
    %fatal got here 1
  %elif %1 = 0
    %fatal got here 2
  %else
    %fatal got here 3
  %endif
  %fatal got here 4 ; should be unreachable
%endmacro
exit ; macro 0-1 with exit also runs unreachable code 4 instead of else code 3.


If you comment out "%elif %1 = 0" and "%fatal got here 2" then exit gives else
code 3.

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