Thread overview
[Issue 13407] Better error message for static array size overflow
Dec 17, 2022
Iain Buclaw
Dec 23, 2023
Dennis
August 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13407

--- Comment #1 from bearophile_hugs@eml.cc ---
(In reply to bearophile_hugs from comment #0)

> test.d(2,28): Error: array 'a' is too much large (512 * 512 * 9 * 9 of
> 'long') to be allocated statically.

Or even:

test.d(2,28): Error: array 'a' is too much large (512 * 512 * 9 * 9 =
21_233_664 of 'long') to be allocated statically.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13407

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 23, 2023
https://issues.dlang.org/show_bug.cgi?id=13407

Dennis <dkorpel@live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel@live.nl
           Hardware|x86                         |All
         Resolution|---                         |FIXED
                 OS|Windows                     |All

--- Comment #2 from Dennis <dkorpel@live.nl> ---
The error message is now a lot better:

```
`long[32768][32768]` size 262144 * 32768 exceeds 0x7fffffff size limit for
static array
```

--