www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17072] New: [REG 2.073.0-b1] missing symbols with -inline

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

          Issue ID: 17072
           Summary: [REG 2.073.0-b1] missing symbols with -inline
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

With dmd 2.073.0-beta1, this code

import core.thread;

void main()
{
    Thread.sleep(dur!"msecs"(50));  
}

produces a link error:

dmd.exe test.d -m64 -inline
test.obj : error LNK2019: unresolved external symbol _D4core4time8Duration46__T10opOpAssignVAyaa1_2dTS4core4time8DurationZ10opOpAssignMFNaNbNcNiNfxS4core4time8DurationZS4core4time8Duration referenced in function _Dmain This does not happen with dmd 2.072 or without -inline. --
Jan 08