www.digitalmars.com         C & C++   DMDScript  

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

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


--- Comment #0 from bearophile_hugs 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: -------
Oct 23 2013