Thread overview
[Issue 8036] New: Zero-length static array of structs with elaborate destructor as struct or class field is rejected
May 04, 2012
Denis
May 04, 2012
Kenji Hara
May 04, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8036

           Summary: Zero-length static array of structs with elaborate
                    destructor as struct or class field is rejected
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis <verylonglogin.reg@gmail.com> 2012-05-04 19:57:07 MSD ---
---
struct S {
    ~this(){ }
}
struct S2 { // or class
    S[0] s;
}
---
Error: this for ~this needs to be type S not type S[0u]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8036


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-04 16:35:16 PDT ---
https://github.com/D-Programming-Language/dmd/pull/926

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8036



--- Comment #2 from github-bugzilla@puremagic.com 2012-05-05 13:37:02 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/785e7d608035d79ba5eafc812ae102e18d5fd53d
fix Issue 8036 - Zero-length static array of structs with elaborate destructor
as struct or class field is rejected

https://github.com/D-Programming-Language/dmd/commit/9f807fb3c119f6ddeebd141c7b7eda53253a4716 Merge pull request #926 from 9rnsr/fix8036

Issue 8036 - Zero-length static array of structs with elaborate destructor as struct or class field is rejected

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