D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15837 - [REG 2.071-b1] stdout.writeln not called anymore in static lib
Summary: [REG 2.071-b1] stdout.writeln not called anymore in static lib
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-27 03:56 UTC by basile-z
Modified: 2016-03-30 11:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description basile-z 2016-03-27 03:56:17 UTC
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 !