Thread overview
[Issue 975] New: compile-time const array makes dmd crash
Feb 17, 2007
d-bugmail
Feb 17, 2007
d-bugmail
Feb 22, 2007
d-bugmail
Feb 26, 2007
d-bugmail
February 17, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=975

           Summary: compile-time const array makes dmd crash
           Product: D
           Version: 1.006
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: Daniel919@web.de


import std.stdio;

template eval(A...) { alias A eval; }

const int foo[5] = [0,1,2,3,4];

void main()
{
        writefln(eval!(foo[3]));
}


-- 

February 17, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=975





------- Comment #1 from fvbommel@wxs.nl  2007-02-17 06:03 -------
*** Bug 976 has been marked as a duplicate of this bug. ***


-- 

February 22, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=975


technocrat7@gmail.com changed:

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




------- Comment #2 from technocrat7@gmail.com  2007-02-22 11:01 -------
Fixed in DMD 1.007


-- 

February 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=975


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #3 from thomas-dloop@kuehne.cn  2007-02-26 05:37 -------
Added to DStress as http://dstress.kuehne.cn/run/t/tuple_17_A.d


--