[Issue 975] New: compile-time const array makes dmd crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 17 03:48:03 PST 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 at digitalmars.com
        ReportedBy: Daniel919 at 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]));
}


-- 



More information about the Digitalmars-d-bugs mailing list