D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor
Summary: hasElaborateDestructor is false for non-zero-length static array of structs w...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 09:15 UTC by Denis Shelomovskii
Modified: 2012-05-07 00:15 UTC (History)
0 users

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 09:15:15 UTC
---
struct S { ~this() {} }
static assert(!hasElaborateDestructor!(S[0])); // Passes
static assert( hasElaborateDestructor!(S[1])); // Fails
---
Comment 1 Denis Shelomovskii 2012-05-04 10:12:57 UTC
Pull: ://github.com/D-Programming-Language/phobos/pull/568

Shouldn't github paste pull link here?
Comment 2 Denis Shelomovskii 2012-05-04 10:13:19 UTC
(In reply to comment #1)
> Pull: ://github.com/D-Programming-Language/phobos/pull/568

https://github.com/D-Programming-Language/phobos/pull/568
Comment 3 github-bugzilla 2012-05-06 23:58:39 UTC
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/a6e38e347247b35bb8473f0e0b9084fb6cb43721
Fix Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor

https://github.com/D-Programming-Language/phobos/commit/0e42d76509f04e637a1a23a6bcadc1e0c3f111bd
Merge pull request #568 from denis-sh/hasElaborateDestructor-fix

Fix Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor