[Issue 17559] New: [REG2.073.0] Wrong line number in stack trace

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 26 10:13:00 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17559

          Issue ID: 17559
           Summary: [REG2.073.0] Wrong line number in stack trace
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dlang-bugzilla at thecybershadow.net

///////////// test.d /////////////
import mod;

void main()
{
    fun(1);
    fun(2);
    fun(3);
    fun(4);
}
////////////// mod.d /////////////
void fun(int n, int defParam = 10)
{
    assert(n != 4);
}
//////////////////////////////////

Test command: dmd -g test.d mod.d ; ./test 2>&1 | grep _Dmain
Output with 2.072.2: test.d:8 _Dmain [0x427dc7]
Output with 2.073.0: test.d:5 _Dmain [0x427d37]

The correct line number is 8, not 5.

Introduced in https://github.com/dlang/dmd/pull/6327

--


More information about the Digitalmars-d-bugs mailing list