[Issue 5064] std.algorithm.map, delegates and cast(dchar) = runtime crash
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 23 01:26:58 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5064
--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-11-23 01:25:27 PST ---
Further reduced. Shows it is caused by an closure passed as an alias parameter,
+ a struct with initialized members. If you remove the '=7', it won't crash.
----
struct Map5064(alias fun)
{
int xxx = 7;
void crash() {
fun();
}
}
void bug5064()
{
void delegate() dg = (){ };
Map5064!( dg ) q;
q.crash();
}
void main()
{
bug5064();
}
--
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