Bug 13400 – Linking problems with bigints and std.functional.memoize
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-30T09:30:00Z
Last change time
2014-09-02T02:14:23Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2014-08-30T09:30:05Z
Since some days the latest dmd 2.067alpha gives me linking problems (I think it's not a dmd problem, but a Phobos/runtime one):
import std.bigint: BigInt;
import std.functional: memoize;
BigInt foo(int[] c) {
BigInt r;
r += memoize!foo([]);
return r;
}
void main() {
bool b = foo([0]) == BigInt("2");
}
OPTLINK (R) for Win32 Release 8.00.15
Copyright (C) Digital Mars 1989-2013 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
test.obj(test)
Error 42: Symbol Undefined _D3std6bigint6BigInt13__T8opEqualsZ8opEqualsMxFNaNbNiNfxS3std6bigint6BigIntZb
test.obj(test)
Error 42: Symbol Undefined _D3std6bigint6BigInt33__T8opAssignTS3std6bigint6BigIntZ8opAssignMFNaNbNiNfS3std6bigint6BigIntZS3std6bigint6BigInt
--- errorlevel 2