Thread overview
[Issue 17837] Static array initializers longer than array length should not be allowed
Sep 18, 2017
b2.temp@gmx.com
Mar 21, 2020
Basile-z
Dec 17, 2022
Iain Buclaw
September 18, 2017
https://issues.dlang.org/show_bug.cgi?id=17837

b2.temp@gmx.com changed:

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

--- Comment #1 from b2.temp@gmx.com ---
Yes but your example is not a static array initializer. This is a simple non-void initializer that consists of an unary expression converted at run-time.

Better example:

char[2] str = ['0','1','2'];

And actually this is already static cally checked.

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

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

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

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=17837

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19318

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--