https://issues.dlang.org/show_bug.cgi?id=19111
--- Comment #3 from anonymous4 <dfj1es...@sneakemail.com> --- (In reply to Alex from comment #0) > I suggest that int[10] should be on the heap unless the compiler can be sure > that there isn't a way for a reference to escape. LDC does the opposite: it performs D-specific optimizations and promotes heap allocations to stack if it detects that the allocation is properly scoped. --