[Nasm-bugs] [Bug 3392731] New: Line numbers go wrong in include files
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Thu Dec 24 04:40:09 PST 2020
https://bugzilla.nasm.us/show_bug.cgi?id=3392731
Bug ID: 3392731
Summary: Line numbers go wrong in include files
Product: NASM
Version: 2.15.xx
Hardware: PC
OS: Windows
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: decwiz at yahoo.com
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
While porting my project from FASM to NASM, I forgot something, and was greeted
with an error on line 304 in a file (print.inc.) Looked that up, but, what?
That line isnt even there!
Enabled listing, and noticed that the main file starts out with correct line
numbers, then includes a file (e.g. print.inc) and continues. However, it does
not reset the line number to 1 for the newly included file, it continues at the
number of the previous file..
Once the included file is done, and we switch back a level, it DOES reset back
to where it was.
So, this is how I ended up with a message about line 304 in the included file,
which was actually line 78.
This, I believe, is a bug.
Regards,
Fred
--
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