Bug 1468 – A bug about stack overflow.

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-09-02T08:40:00Z
Last change time
2015-06-09T01:14:15Z
Assigned to
bugzilla
Creator
colorful1982

Comments

Comment #0 by colorful1982 — 2007-09-02T08:40:29Z
Hi. I found a bug. Here is the code sample: import std.stdio; void main() { int[10] arrayA = [0,1,2,3,4,5,6,7,8,9]; foreach(int i; arrayA) { writefln(i); } } It throws a stack overflow exception. I think it's a bug about static array.
Comment #1 by bugzilla — 2007-09-28T22:17:29Z
Fixed dmd 2.004