[Issue 8036] New: Zero-length static array of structs with elaborate destructor as struct or class field is rejected
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 4 08:55:52 PDT 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 at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis <verylonglogin.reg at 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: -------
More information about the Digitalmars-d-bugs
mailing list