Comment #0 by bearophile_hugs — 2014-02-10T09:55:43Z
This comes from reduction of code that uses BigInt, I don't understand this problem:
import std.internal.math.biguintcore;
struct Foo { BigUint a; }
void main() pure {
BigUint x;
x = BigUint(); // OK
Foo y;
y = Foo(); // Error
}
DMD 2.065beta3 gives:
test.d(7): Error: pure function 'D main' cannot call impure function 'test.Foo.opAssign'