[Issue 12312] New: Regression (2.064): Diagnostic for void static arrays has gone bad
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 7 07:09:34 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12312
Summary: Regression (2.064): Diagnostic for void static arrays
has gone bad
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-07 07:09:32 PST ---
-----
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;
-----
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list