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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Andrej Mitrovic <[email protected]> 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: -------

Reply via email to