--- struct S { ~this(){ } } struct S2 { // or class S[0] s; } --- Error: this for ~this needs to be type S not type S[0u]
https://github.com/D-Programming-Language/dmd/pull/926
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