http://d.puremagic.com/issues/show_bug.cgi?id=5064
Summary: Crash related to std.algorithm.map, delegates, and casts Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: c...@klickverbot.at --- Comment #0 from klickverbot <c...@klickverbot.at> 2010-10-16 13:29:55 PDT --- The following program crashes using DMD 2.049 on Linux x86_64 and DMD 2.048 on OS X x86_64: --- import std.algorithm; void main() { foreach ( offset; 0 .. 26 ) { map!( ( c ){ return cast( dchar )offset; } )( "asdf" ); } } --- If you remove the cast to dchar, the segmentation fault does no longer occur. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------