[Issue 5064] std.algorithm.map, delegates and cast(dchar) = runtime crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 8 00:06:22 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5064



--- Comment #3 from Don <clugdbug at yahoo.com.au> 2010-11-08 00:05:17 PST ---
Reduced test case. Possibly related to bug 1350.

struct Map(alias fun)
{
    dchar xxx;
    this(int[] input) {
       fun(input[0]);
    }
}

void main() {
   auto dg = ( int c ){ return cast(dchar)'x'; }; 

   Map!( ( c ){ return dg( c ); } )( [ 1 ] );
}

-- 
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