www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11297] New: [ICE](glue.c line 868) with a string concat in global enum lambda

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

           Summary: [ICE](glue.c line 868) with a string concat in global
                    enum lambda
           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


--- Comment #0 from bearophile_hugs eml.cc 2013-10-18 18:44:52 PDT ---
import std.algorithm: map, reduce;
import std.array: array;
enum foo = (string[] arr, string x) =>
    arr.map!(y => "" ~ x).array;
void main() {
    reduce!foo([""], [""]);
}



dmd 2.064beta2 crashes with:

Assertion failure: '!v->csym' on line 868 in file 'glue.c'

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