http://d.puremagic.com/issues/show_bug.cgi?id=3560
Don <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |[email protected] Summary|foreach on closure |foreach on closure |corrupted |corrupted after varargs | |call Severity|normal |major --- Comment #1 from Don <[email protected]> 2010-04-29 02:50:11 PDT --- Reduced test case (this example segfaults at runtime) shows it is related to varargs. ------------------------ void bug3560(int ...){ } void main() { int localvar = 7; bug3560(2); // this call must be made before the foreach int inner(int delegate(ref int) dg) { int k = localvar; return 0; } foreach (entry; &inner) { } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
