D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8071 - ICE(glue.c): delegate passed to std.algorithm.map
Summary: ICE(glue.c): delegate passed to std.algorithm.map
Status: RESOLVED DUPLICATE of issue 4481
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2012-05-09 05:48 UTC by kekeniro2
Modified: 2012-05-18 19:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kekeniro2 2012-05-09 05:48:08 UTC
This command results in abnormal program termination with error:
  Assertion failure: '!vthis->csym' on line 716 in file 'glue.c'

COMMAND: ( the order of arguments is significant )
  dmd moda.d modb.d

moda.d
---------------------------------------
import std.algorithm;

modb.d
---------------------------------------
import std.algorithm;
class C {
    void memberFun() {
        int local;
        map!( (a){return local;} )( "" );
    }
}
Comment 1 kekeniro2 2012-05-09 10:10:14 UTC
Sorry, that message(...line716...) was from git head.

D2.059's message is here:
  Assertion failure: '!vthis->csym' on line 686 in file 'glue.c'


In addition, explicit parameter type of delegate literal prevents this error.
  map!( (dchar a){return local;} )( "" ); // 'dchar' added


Environment:
  Windows XP SP3 32bit
Comment 2 kekeniro2 2012-05-18 19:16:49 UTC

*** This issue has been marked as a duplicate of issue 4481 ***