https://issues.dlang.org/show_bug.cgi?id=23181
--- Comment #2 from Iain Buclaw <[email protected]> --- The correct behaviour would be: --- void main() { int count; { struct hasDtor { ~this() { ++count; } } hasDtor[4] arr4 = hasDtor(); assert(count == 1); } assert(count == 5); } --- --
