[Issue 12010] New: [REG DMD2.065-b1] Undefined template symbols for static library linked with debug symbols

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 27 03:37:34 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12010

           Summary: [REG DMD2.065-b1] Undefined template symbols for
                    static library linked with debug symbols
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sludwig at outerproduct.org


--- Comment #0 from Sönke Ludwig <sludwig at outerproduct.org> 2014-01-27 03:37:31 PST ---
a.d
---
import b;
void main() {}
---

b.d
---
import std.container : Array, BinaryHeap;
BinaryHeap!(Array!int) test;
---

dmd -g -lib b.d
dmd -g a.d b.lib

results in:
OPTLINK (R) for Win32  Release 8.00.15
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
a.obj(a)
 Error 42: Symbol Undefined
_D3std9container12__T5ArrayTiZ5Array7Payload10__postblitMFZv
a.obj(a)
 Error 42: Symbol Undefined
_D3std9container52__T10BinaryHeapTS3std9container12__T5ArrayTiZ5ArrayZ10BinaryHeap4Data15__fieldPostBlitMFZv
--- errorlevel 2

Removing -g makes it link. -allinst doesn't have an effect. Still happens in
DMD 2.065.0-b2, but works for DMD 2.064.

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


More information about the Digitalmars-d-bugs mailing list