Bug 12312 – Regression (2.064): Diagnostic for void static arrays has gone bad
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-07T07:09:00Z
Last change time
2014-04-07T15:40:34Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2014-03-07T07:09:32Z
-----
void main()
{
void[16] arr;
}
-----
2.063:
$ dmd test.d
> test.d(3): Error: void does not have a default initializer
2.064:
$ dmd test.d
> test.d(3): Error: cannot implicitly convert expression (cast(ubyte)0u) of type ubyte to void[]
FYI for those who are curious, you can only initialize these via:
-----
void[16] arr = void;
-----
Comment #1 by dlang-bugzilla — 2014-03-07T08:06:32Z