Bug 8071 – ICE(glue.c): delegate passed to std.algorithm.map
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-05-09T05:48:00Z
Last change time
2012-05-18T19:16:49Z
Keywords
ice
Assigned to
nobody
Creator
kekeniro2
Comments
Comment #0 by kekeniro2 — 2012-05-09T05:48:08Z
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 by kekeniro2 — 2012-05-09T10:10:14Z
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 by kekeniro2 — 2012-05-18T19:16:49Z
*** This issue has been marked as a duplicate of issue 4481 ***