[Issue 10857] New: ICE(glue.c, bugzilla 2962?) or compiles, depending on the files order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 19 20:59:25 PDT 2013


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

           Summary: ICE(glue.c, bugzilla 2962?) or compiles, depending on
                    the files order
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice, rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: kekeniro2 at yahoo.co.jp


--- Comment #0 from kekeniro2 at yahoo.co.jp 2013-08-19 20:59:24 PDT ---
This is somehow similar to Issue 8071.

COMMAND:
dmd -inline moda.d modb.d
# files' order is significant.

OUTPUT:(by 2.063.2)
modb.d(4): Error: function modb.foo compiler error, parameter 'outer', bugzilla
2962?
Assertion failure: '0' on line 817 in file 'glue.c'

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

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

void foo(bool outer) {
    int[] infos;
    infos.filter!(s=>outer)(); // NG: error is triggered here
    //infos.filter!((int s)=>outer)(); // OK
}

void main() {}

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