www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10994] New: [REG] cannot declare statics struct with void-initialized static arrays

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10994

           Summary: [REG] cannot declare statics struct with
                    void-initialized static arrays
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com


--- Comment #0 from monarchdodra gmail.com 2013-09-08 01:57:03 PDT ---
//----
struct T
{
    int   i = void; //OK
    int*  p = void; //OK
    int[] slice = void; //OK
    ubyte[2] buf = void; //NOPE
}
static t = T.init;
//----

2.063.2: OK!

v2.064-devel:
main.d(8): Error: uninitialized variable 'buf' cannot be returned from CTFE
main.d(8): Error: uninitialized variable 'buf' cannot be returned from CTFE

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10994



--- Comment #1 from Don <clugdbug yahoo.com.au> 2013-09-16 00:57:11 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2562

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 16 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10994



--- Comment #2 from github-bugzilla puremagic.com 2013-09-16 14:02:03 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a06d7305f8844a6930d43d5c62f4e0f4f5459c2e
Fix issue 10994 CTFE void-initialized static arrays

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 16 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10994


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 16 2013