Bug 1794 – Array enums are broken, causing access violation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-01-20T19:31:00Z
Last change time
2015-06-09T01:14:26Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
torhu

Comments

Comment #0 by torhu — 2008-01-20T19:31:51Z
Bug is still present in 2.010. --- import std.stdio; enum int[] array = [1, 2, 3]; void main() { writefln(array); // works fine foreach (x; array) // access violation writefln(x); } ---
Comment #1 by torhu — 2008-03-10T03:59:15Z
Fixed dmd 2.012.