[Issue 11332] New: [ICE](dt.c line 106) with map of a log at compile-time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 23 09:48:37 PDT 2013


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

           Summary: [ICE](dt.c line 106) with map of a log at compile-time
           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 2013-10-23 09:48:36 PDT ---
import std.algorithm: map;
import std.math: log;
import std.array: array;
double[3] a = [1].map!log.array;
void main() {}



dmd 2.064beta2 gives:

...\dmd2\src\phobos\std\algorithm.d(462):        called from here:
log(cast(real)front(this._input))
...\dmd2\src\phobos\std\array.d(41):        called from here: __r10.front()
test.d(4):        called from here: array(map([1]))
Internal error: backend\dt.c 106

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