Thread overview
[Issue 14859] static declared array with more than 16MB size should be allowed in struct and class declaration
Sep 11, 2015
nx
Sep 11, 2015
bb.temp@gmx.com
Jan 30, 2017
Walter Bright
Mar 21, 2020
Basile-z
September 11, 2015
https://issues.dlang.org/show_bug.cgi?id=14859

nx <nightmarex1337@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
September 11, 2015
https://issues.dlang.org/show_bug.cgi?id=14859

bb.temp@gmx.com changed:

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

--- Comment #1 from bb.temp@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.

--
January 30, 2017
https://issues.dlang.org/show_bug.cgi?id=14859

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Reboot: https://github.com/dlang/dmd/pull/6503

--
February 11, 2017
https://issues.dlang.org/show_bug.cgi?id=14859

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/07855a2f94e216b65a342dc06a7d6f1d6bcafb8f reboot #6081: Fix issue 14859 - 16MiB size limit for static array

https://github.com/dlang/dmd/commit/14ba1f62e7f1be6668feddd14d20de4837875585 Merge pull request #6503 from WalterBright/fix14859

reboot #6081: Fix issue 14859 - 16MiB size limit for static array

--
February 24, 2017
https://issues.dlang.org/show_bug.cgi?id=14859

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/07855a2f94e216b65a342dc06a7d6f1d6bcafb8f reboot #6081: Fix issue 14859 - 16MiB size limit for static array

https://github.com/dlang/dmd/commit/14ba1f62e7f1be6668feddd14d20de4837875585 Merge pull request #6503 from WalterBright/fix14859

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=14859

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--