www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14959] New: Regression in HEAD: linker error on printing


          Issue ID: 14959
           Summary: Regression in HEAD: linker error on printing SysTime
                    with writeln
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: jack jackstouffer.com

This works in DMD 2.068, but errors in git head of master

import std.stdio : written;
import std.datetime;

void main() {
    auto d1 = Clock.currTime;

$ dmd test.d

Undefined symbols for architecture x86_64:
referenced from:
in test.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1

Aug 24 2015