[Issue 11971] New: [ICE] (interpret.c line 357) with undefined identifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 22 10:55:25 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11971

           Summary: [ICE] (interpret.c line 357) with undefined identifier
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2014-01-22 10:55:19 PST ---
Wrong code:

void main() {
    import std.algorithm: filter, map;
    enum foo = (int n) => [1].map!(x);
    enum bar = [1].filter!(n => foo(n));
}


DMD 2.065beta crashes:

test.d(3): Error: undefined identifier x
Assertion failure: '0' on line 357 in file 'interpret.c'

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list