[Issue 3560] foreach on closure corrupted after varargs call
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 29 02:50:13 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3560
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |clugdbug at yahoo.com.au
Summary|foreach on closure |foreach on closure
|corrupted |corrupted after varargs
| |call
Severity|normal |major
--- Comment #1 from Don <clugdbug at yahoo.com.au> 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: -------
More information about the Digitalmars-d-bugs
mailing list