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
Comment #1 by k.hara.pg — 2014-08-31T03:41:38Z
Comment #2 by k.hara.pg — 2014-08-31T03:43:19Z
Comment #3 by github-bugzilla — 2014-08-31T10:53:59Z
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
Comment #4 by github-bugzilla — 2014-09-02T02:14:23Z
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