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
Comment #2 by k.hara.pg — 2014-04-06T09:54:04Z
Comment #3 by github-bugzilla — 2014-04-07T11:21:47Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2986f41ad1a3e6955b81a74b2403dadb2e56f8d7 fix Issue 12312 - Diagnostic for void static arrays has gone bad https://github.com/D-Programming-Language/dmd/commit/21a1c035b3a0f466c4b0fa4fc26781d1c8c697f5 Merge pull request #3428 from 9rnsr/fix12312 [REG2.064] Issue 12312 - Diagnostic for void static arrays has gone bad