[Nasm-bugs] [Bug 3392578] New: %error is swallowed when %if condition "operands differ by a non-scalar"

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Thu Jun 27 05:33:07 PDT 2019


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

            Bug ID: 3392578
           Summary: %error is swallowed when %if condition "operands
                    differ by a non-scalar"
           Product: NASM
           Version: 2.14.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at 38.de
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

This came up during development when an %if accidentally received the sum of
two symbols, instead of the delta. In that case, %error is effectively ignored.

$ cat test.asm
symbol:
%if (symbol + symbol) > 1
 %fatal Should not see this.
%endif
%error Should see this.
$ nasm -v
NASM version 2.14.03rc2 compiled on Jun  6 2019
$ nasm test.asm
test.asm:2: error: `>': operands differ by a non-scalar
$

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


More information about the Nasm-bugs mailing list