[Issue 14768] Error: index 174762 overflow for static array
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Jul  4 12:19:36 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14768
Kenji Hara <k.hara.pg at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|regression                  |minor
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to ag0aep6g from comment #3)
> The 16MB limit is in the spec. 174762*32*4 bytes is more than 16MB.
Good catch. From: http://dlang.org/arrays
"The total size of a static array cannot exceed 16Mb. A dynamic array should be
used instead for such large arrays."
> > index 174762 overflow for static array does not mean anything. There is no
> > array access, so how can an overflow occur ?
> 
> I agree that the error message is bad.
Downgrade to minor diagnostic issue.
--
    
    
More information about the Digitalmars-d-bugs
mailing list