www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8151] New: [ICE] Two internal errors with recursive map

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8151

           Summary: [ICE] Two internal errors with recursive map
           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



import std.algorithm: map;
void main() {
    int foo(int) {
        return [1].map!foo().front;
    }
}


DMD 2.060head gives:

map(Range) if (isInputRange!(Unqual!(Range)))([1]).front
Internal error: e2ir.c 705

--------------------------

A probably related problem:


import std.algorithm: map, reduce;
void main() {
    int foo(int) {
        return true ? 1 : [1].map!foo().reduce!q{a}();
    }
}


DMD 2.060head gives:

Internal error: e2ir.c 3519

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8151


hsteoh quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh quickfur.ath.cx



Works on git HEAD, Linux 64-bit. Fixed, or Windows-specific problem?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 27 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8151


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



Both programs now compile. Closed.

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