[Issue 11069] New: DMD (github HEAD) Linker Regression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 19 04:12:53 PDT 2013


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

           Summary: DMD (github HEAD) Linker Regression
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: puneet at coverify.org


--- Comment #0 from Puneet Goel <puneet at coverify.org> 2013-09-19 04:12:51 PDT ---
The following reduced code example fails to link. It seems to be due to DMD
checkin 12bb9afb753ad2f2aef65550b960357c63854cbc -- fix Issue 10441 - Static
libraries too big. Compiles fine if I try with one version before that.

On my Linux x64 box I get:

$ rdmd test.d
/tmp/.rdmd-1000/rdmd-test.d-C130B18713BE4647AF6BF8F764A06FDD/objs/test.o: In
function
`_D3std9container32__T10BinaryHeapTAS4test3Bar3FooZ10BinaryHeap3popMFAS4test3Bar3FooZv':
__entrypoint.d:(.text._D3std9container32__T10BinaryHeapTAS4test3Bar3FooZ10BinaryHeap3popMFAS4test3Bar3FooZv+0x5c):
undefined reference to
`_D3std5array25__T5emptyTS4test3Bar3FooZ5emptyFNaNbNdNfxAS4test3Bar3FooZb'


// test.d Reduced code example:

class Bar {
  import std.container: BinaryHeap;
  BinaryHeap!(Foo[]) Heap;
  struct Foo {
    int opCmp(Foo ) {
      return 1;
    }
  }
}

void main() {}

-- 
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