http://d.puremagic.com/issues/show_bug.cgi?id=8526
--- Comment #3 from Kenji Hara <[email protected]> 2012-11-08 19:45:42 PST --- >From bug 8775, foreach range statement has same bug. void call(void delegate() dg) { dg(); } void main() { foreach (i, j; [0]) { call({ assert(i == 0); // fails, i is corrupted }); } foreach (n; 0..1) { call({ assert(n == 0); // fails, n is corrupted }); } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
