The following code causes `object.Error@(0): Access Violation` at `ss.length = 1` on Windows 64bit. --- app.d import std.traits; struct S { int i; } auto f() { S[] ss; ss.length = 1; } alias a = ReturnType!f; void main() { f(); } --- Tested on the following versions. - dmd-2.090.0 - dmd-2.091.0-rc.1
according to run.dlang.io it's a regression in 2.087 or 2.087.1
sorry, the reg is from 2.088 and 2.087.1 is the last working.
@BorisCarvajal created dlang/dmd pull request #10881 "Fix Issue 20649 - Trait isZeroInit gives false in certain scenarios" fixing this issue: - Fix Issue 20649 - Trait isZeroInit gives false in certain scenarios https://github.com/dlang/dmd/pull/10881
dlang/dmd pull request #10881 "Fix Issue 20649 - Trait isZeroInit gives false in certain scenarios" was merged into stable: - 7ed52727aa50a021795abc06f91592b0adcc9b13 by Boris Carvajal: Fix Issue 20649 - Trait isZeroInit gives false in certain scenarios https://github.com/dlang/dmd/pull/10881