[Issue 3700] Ref foreach over large static arrays fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 14 06:41:45 PST 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug at yahoo.com.au
         Resolution|                            |INVALID


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-01-14 06:41:44 PST ---
Nothing to do with foreach. It's just a stack overflow. Reduced test case:

void main()
{
   double[1000000] a;
}

Error: Stack Overflow

You can't expect 8Mb of data to be storable on the stack!
This will happen in C, as well.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list