D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4121 - Associative array value bigint assign
Summary: Associative array value bigint assign
Status: RESOLVED DUPLICATE of issue 2451
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-24 15:54 UTC by bearophile_hugs
Modified: 2015-06-09 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-04-24 15:54:32 UTC
I don't understand this error (this is not related to BigInt missing a toHash):

import std.bigint: BigInt;
void main() {
    BigInt[int] aa;
    BigInt b = BigInt(1);
    aa[10] = b; // line 5
}


dmd 2.043 shows:
core.exception.RangeError@Temp(5): Range violation
Comment 1 Don 2010-06-14 06:46:04 UTC

*** This issue has been marked as a duplicate of issue 2451 ***