http://d.puremagic.com/issues/show_bug.cgi?id=10057

           Summary: [2.063 beta] Module info overwritten in shared phobos.
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Mike Wey <[email protected]> 2013-05-10 05:52:49 PDT ---
When running the phobos unittests against the shared phobos libraries, some of
them fail because they are run twice.

This because the Module info from the phobos lib is overwritten by the on from
the binary.

---
module std.c.linux.socket;

import std.stdio;

void main(){}

unittest
{
    writeln("Test");
}
---

When linking with the static phobos:
dmd test.d -unittest -defaultlib=:libphobos2.a

it only prints "Test" once.

While when linking with the shared phobos:
dmd test.d -unittest -defaultlib=:libphobos2so.so

"Test" is printed twice.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to