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
https://github.com/D-Programming-Language/dmd/pull/3932
Introduced in: https://github.com/D-Programming-Language/dmd/pull/3874
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1787f89d9f0460b3fc34b90e0c49a57475923a30 fix Issue 13400 - Linking problems with bigints and std.functional.memoize https://github.com/D-Programming-Language/dmd/commit/991ce9187dcdae9745065f168b531121b02d5371 Merge pull request #3932 from 9rnsr/fix13400 [REG2.067a] Issue 13400 - Linking problems with bigints and std.functional.memoize
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f45825b99c7d45a21a8cbb07ce57a6e0372037da Merge pull request #3932 from 9rnsr/fix13400 [REG2.067a] Issue 13400 - Linking problems with bigints and std.functional.memoize