[Issue 10057] New: [2.063 beta] Module info overwritten in shared phobos.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 10 05:52:50 PDT 2013


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: nobody at puremagic.com
        ReportedBy: mike-wey at planet.nl


--- Comment #0 from Mike Wey <mike-wey at planet.nl> 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: -------


More information about the Digitalmars-d-bugs mailing list