www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15837] New: [REG 2.071-b1] stdout.writeln not called anymore

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

          Issue ID: 15837
           Summary: [REG 2.071-b1] stdout.writeln not called anymore in
                    static lib
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

make a static library with the following class

class Foo
{
    this()
    {
        import std.stdio;
        writeln("whatever");
    }
}

then in a simple program import this static library and create a new Foo.

then execute

=> nothing is written to the console !

--
Mar 26 2016