https://issues.dlang.org/show_bug.cgi?id=13391
Issue ID: 13391
Summary: BigInt division by ulong rejected
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
dmd 2.066
import std.bigint;
void main()
{
BigInt x = BigInt(1);
x /= 1U; // OK
x /= 1UL; // std/bigint.d(166): Error: static assert (true && false) is false
}
Issue 7973 is related. Don says this is was intentional due to some
implementation issues, but should be solvable now.
Expected: All integer operations should exist on BigInt for all integral types.
--