[Nasm-bugs] [Bug 3392565] New: equ allows colon after the expression to calculate

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Thu Apr 11 08:17:36 PDT 2019


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

            Bug ID: 3392565
           Summary: equ allows colon after the expression to calculate
           Product: NASM
           Version: 2.14.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: trivial
          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: From OS distribution

This is just something unexpected that came up during some development. I'd
expect this to cause an error, but it doesn't. Is this intended?


$ nasm -v
NASM version 2.14
$ cat test.asm 
[map all test.map]

        org 256
label1:
label2 equ label1
label3 equ label1:
label4: equ label1
label5: equ label1:
$ nasm test.asm -o test.bin -l test.lst
$ cat test.map

- NASM Map file ---------------------------------------------------------------

Source file:  test.asm
Output file:  test.bin

-- Program origin -------------------------------------------------------------

00000100

-- Sections (summary) ---------------------------------------------------------

Vstart            Start             Stop              Length    Class     Name
             100               100               100  00000000  progbits  .text

-- Sections (detailed) --------------------------------------------------------

---- Section .text ------------------------------------------------------------

class:     progbits
length:                   0
start:                  100
align:     not defined
follows:   not defined
vstart:                 100
valign:    not defined
vfollows:  not defined

-- Symbols --------------------------------------------------------------------

---- Section .text ------------------------------------------------------------

Real              Virtual           Name
             100               100  label1
             100               100  label2
             100               100  label3
             100               100  label4
             100               100  label5

$

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