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

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-04T08:57:00Z
Last change time
2012-05-05T14:27:49Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2012-05-04T08:57:07Z
--- struct S { ~this(){ } } struct S2 { // or class S[0] s; } --- Error: this for ~this needs to be type S not type S[0u]
Comment #1 by k.hara.pg — 2012-05-04T16:35:16Z
Comment #2 by github-bugzilla — 2012-05-05T13:37:02Z
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