D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8036 - Zero-length static array of structs with elaborate destructor as struct or class field is rejected
Summary: Zero-length static array of structs with elaborate destructor as struct or cl...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-05-04 08:57 UTC by Denis Shelomovskii
Modified: 2012-05-05 14:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Denis Shelomovskii 2012-05-04 08:57:07 UTC
---
struct S {
    ~this(){ }
}
struct S2 { // or class
    S[0] s;
}
---
Error: this for ~this needs to be type S not type S[0u]
Comment 2 github-bugzilla 2012-05-05 13:37:02 UTC
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