www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12312] New: Regression (2.064): Diagnostic for void static arrays has gone bad

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich 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: -------
Mar 07 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12312


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-07
18:06:32 EET ---
Introduced in https://github.com/D-Programming-Language/dmd/pull/2605

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 07 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12312


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, pull
            Version|unspecified                 |D2


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2014-04-06 09:54:04 PDT ---
https://github.com/D-Programming-Language/dmd/pull/3428

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12312



--- Comment #3 from github-bugzilla puremagic.com 2014-04-07 11:21:47 PDT ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 07 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12312


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 07 2014