[Nasm-bugs] [Bug 3392535] New: Duplicate label with same value is silently ignored

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Tue Nov 27 12:18:19 PST 2018


            Bug ID: 3392535
           Summary: Duplicate label with same value is silently ignored
           Product: NASM
           Version: 2.14.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: minor
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at 38.de
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: From OS distribution

NASM 2.14 silently allows the same label to be defined multiple times, if the
address value is the same. Assuming this is an unintended "feature", this
should be disallowed, as it was in NASM 2.13.

Test case:

~/test/nasm/20181127$ cat test2.asm 


testA equ 1
testB equ 2
testA equ 1

~/test/nasm/20181127$ nasm -v
NASM version 2.14
~/test/nasm/20181127$ nasm test2.asm
~/test/nasm/20181127$ ./nasm -v
NASM version 2.13.03 compiled on Feb  7 2018
~/test/nasm/20181127$ ./nasm test2.asm
test2.asm:4: error: symbol `test1' redefined
test2.asm:8: error: symbol `testA' redefined

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