[Issue 17837] Static array initializers longer than array length should not be allowed

2024-12-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17837

--- Comment #2 from dlangBugzillaToGithub  ---
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

--


[Issue 17837] Static array initializers longer than array length should not be allowed

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17837

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P3

--


[Issue 17837] Static array initializers longer than array length should not be allowed

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17837

Basile-z  changed:

   What|Removed |Added

 CC|b2.t...@gmx.com |

--


[Issue 17837] Static array initializers longer than array length should not be allowed

2017-09-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17837

b2.t...@gmx.com changed:

   What|Removed |Added

 CC||b2.t...@gmx.com

--- Comment #1 from b2.t...@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.

--