www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1468] New: A bug about stack overflow.

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: colorful1982 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.


-- 
Sep 02 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1468


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 2.004


-- 
Sep 28 2007