[Issue 4481] ICE(glue.c, !vthis->csym) or compiles, depending on the import statements order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 30 00:09:00 PDT 2013


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



--- Comment #13 from kekeniro2 at yahoo.co.jp 2013-07-30 00:08:55 PDT ---
Here is another variant of this.

[DMD2.063.2]
dmd crasha.d crashb.d
===> Assertion failure: '!vthis->csym' on line 783 in file 'glue.c'

// crasha.d ---------------------
import std.algorithm;

// crashb.d ---------------------
import std.algorithm;

class SomeClass {
    void foo() {
        //enum myFilter = function(int s)=>true; // OK
        auto myFilter = function(int s)=>true;   // NG
        int[] r;
        r.filter!myFilter();
    }
}

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