www.digitalmars.com         C & C++   DMDScript  

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

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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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: -------
Jan 22 2014