cat > bug.d << CODE struct S { size_t foo() { _ary.length += 1; return _ary.length; } int[] _ary; } enum len = S().foo(); CODE dmd -c bug -------- Happens only if array is a struct field and when read-assign on length (pre/post-increment or opAssign).
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e9b87a059a3291927c6d9f65a8c748996e59b01b Fix issue 7789 [CTFE] null pointer exception on setting array length https://github.com/D-Programming-Language/dmd/commit/b79b3f8a54daceed0e4c7519d6822a453f2ef7ba Merge pull request #845 from donc/ctfe7789 Fix issue 7789 [CTFE] null pointer exception on setting array length
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル