https://d.puremagic.com/issues/show_bug.cgi?id=12251
safety0ff.bugz <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from safety0ff.bugz <[email protected]> 2014-02-25 10:07:46 PST --- I think this is a wrong-code bug and not a phobos enhancement. If we manually change the the BigInts to lvalues we see the correct output. ------ Example ----- import std.stdio, std.bigint; bool b; void main() { int x1, x2; (b ? x1 : x2) += 1; writeln(x1, " ", x2); BigInt y1, y2; (b ? y1 : y2) += 1; writeln(y1, " ", y2); BigInt z1, z2; *(b ? &z1 : &z2) += 1; writeln(z1, " ", z2); } ------ Output ----- 0 1 0 0 0 1 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
