[Issue 14859] static declared array with more than 16MB size should be allowed in struct and class declaration

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Sep 11 03:52:57 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14859

bb.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bb.temp at gmx.com

--- Comment #1 from bb.temp at gmx.com ---
the OPTLINK restriction (https://issues.dlang.org/show_bug.cgi?id=1542) applies
also here even if it looks like the limit value has changed since 2008.

for example compile this:
---
struct Stuff
{
    byte[1024*1024*8] hugeArrayPart_1;
    byte[1024*1024*8] hugeArrayPart_2;
    byte[1024*1024*8] hugeArrayPart_3;
    byte[1024*1024*8] hugeArrayPart_4;
    byte[1024*1024*8] hugeArrayPart_5;
    byte[1024*1024*8] hugeArrayPart_6;
}

void main(){}
---

and you reach the OPTLINK limit.

--


More information about the Digitalmars-d-bugs mailing list