Bug 975 – compile-time const array makes dmd crash

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-02-17T05:47:00Z
Last change time
2014-02-16T15:23:43Z
Assigned to
bugzilla
Creator
Daniel919

Comments

Comment #0 by Daniel919 — 2007-02-17T05:47:56Z
import std.stdio; template eval(A...) { alias A eval; } const int foo[5] = [0,1,2,3,4]; void main() { writefln(eval!(foo[3])); }
Comment #1 by fvbommel — 2007-02-17T06:03:18Z
*** Bug 976 has been marked as a duplicate of this bug. ***
Comment #2 by technocrat7 — 2007-02-22T11:01:19Z
Fixed in DMD 1.007
Comment #3 by thomas-dloop — 2007-02-26T05:37:08Z