[Issue 15948] New: wrong line numbers in stack traces
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 21 09:10:03 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15948
Issue ID: 15948
Summary: wrong line numbers in stack traces
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: gassa at mail.ru
Release 2.069.0 introduced line numbers in stack traces, but they are often
wrong.
Consider the trivial example:
-----some.d-----
void main ()
{
assert (false);
}
-----
Compile as "dmd -g some.d" to 32-bit Windows executable.
Here is the error message up to 2.068.2 release:
core.exception.AssertError at some.d(3): Assertion failure
<...>
0x00402054 in main
<...>
And here is the error message in 2.069.0 and up:
core.exception.AssertError at some.d(3): Assertion failure
<...>
0x00402054 in main at <...>\some.d(7)
<...>
Here, "some.d(7)" is file and line number. Obviously, it is wrong, and the
line should be 3.
--
More information about the Digitalmars-d-bugs
mailing list