Summary: [ICE] (interpret.c, line 100) Maybe caused by a
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-06-26 15:39:18 PDT ---
This bug seems to require several details to happen:

import std.algorithm: map;
auto foo(in int[] table) {
    return (int x) {
        return table[0];
void main() {
    const int[] table = [1];
    auto bar = foo(table);
    [1].map!bar(); // OK
    [1].map!(foo(table))(); // crash

DMD 2.060alpha:

test.d(3): Error: closures are not yet supported in CTFE
test.d(11):        called from here: foo(table)
Assertion failure: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack <
stackPointer()' on line 100 in file 'interpret.c'

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to