http://d.puremagic.com/issues/show_bug.cgi?id=5064
klickverbot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #1 from klickverbot <[email protected]> 2010-10-16 13:44:03 PDT --- The foreach loop is not needed, another temporary »works« as well: --- import std.algorithm; void main() { auto a = 1; auto dg = ( uint c ){ return cast( dchar )a; }; // This works: dg( 1 ); // This crashes: map!( ( c ){ return dg( c ); } )( [ 1 ] ); } --- GDB prints the innermost frame like this: 0x08049846 in ave.main.__dgliteral2!(int).__dgliteral2 (this=0x0, c=1) at ave.d:11 Note that this is null – could this be an issue, or is this relative to the current frame? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
