This doesn't compile, and this is _normal_ (Error: escaping reference to local a): int[] test() { int a[2]; return a; } But this does compile (DMD 1.01) and should obviously not! int[] test() out{} body { int a[2]; return a; } The problem seems to come from the out section. Removing it raises the compile time error "Error: escaping reference to local a". Regards -- Gilles
2.058head has same problem, so this is D1 & D2 issue. D2 patch: https://github.com/D-Programming-Language/dmd/pull/617
*** Issue 7272 has been marked as a duplicate of this issue. ***
https://github.com/D-Programming-Language/dmd/commit/dba22f42fca18ecef744dd14e9ce625cb700b438 https://github.com/D-Programming-Language/dmd/commit/53cba196db7ad7d656cea44c7ad90985baa0ac04
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル