Bug 4301 – BigInt * const(BigInt) doesn't work well

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2010-06-10T04:46:00Z
Last change time
2015-06-09T05:13:46Z
Assigned to
clugdbug
Creator
bearophile_hugs
Depends on
8395
Blocks
4874

Comments

Comment #0 by bearophile_hugs — 2010-06-10T04:46:47Z
This D2 program looks correct: import std.bigint: BigInt; void main() { BigInt a = 10; const BigInt b = 2; a = a * b; } DMD v2.047beta prints at compile-time: test.d(5): Error: 'a' is not of arithmetic type, it is a BigInt test.d(5): Error: 'b' is not of arithmetic type, it is a const(BigInt) I don't know how to define an immutable BigInt.
Comment #1 by clugdbug — 2010-06-17T04:02:50Z
*** Issue 4340 has been marked as a duplicate of this issue. ***
Comment #2 by clugdbug — 2012-07-20T00:07:13Z
This is blocked by bug 8395.
Comment #3 by andrei — 2013-03-10T19:02:22Z
Assigning to Don (not sure whether the ID/email is still correct). Don?
Comment #4 by joseph.wakeling — 2013-09-30T10:47:00Z
Comment #5 by simen.kjaras — 2013-11-07T00:08:58Z
Comment #6 by bearophile_hugs — 2013-11-10T02:10:19Z
*** Issue 11490 has been marked as a duplicate of this issue. ***
Comment #7 by bearophile_hugs — 2013-11-18T02:23:08Z