[Issue 1468] New: A bug about stack overflow.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 2 06:40:30 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1468

           Summary: A bug about stack overflow.
           Product: D
           Version: 2.003
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: colorful1982 at hotmail.com


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.


-- 



More information about the Digitalmars-d-bugs mailing list