D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13400 - Linking problems with bigints and std.functional.memoize
Summary: Linking problems with bigints and std.functional.memoize
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2014-08-30 09:30 UTC by bearophile_hugs
Modified: 2014-09-02 02:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2014-08-30 09:30:05 UTC
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 2 Kenji Hara 2014-08-31 03:43:19 UTC
Introduced in: https://github.com/D-Programming-Language/dmd/pull/3874
Comment 3 github-bugzilla 2014-08-31 10:53:59 UTC
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 github-bugzilla 2014-09-02 02:14:23 UTC
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