To fix this, CTFE will need to properly implement a stack for variables to be stored on. ------------- void bug6037(ref int x, bool b){ int w = 3; if (b) { bug6037(w, false); assert(w==6); } else { x = 6; assert(w==3); // fails } } int bug6037outer(){ int q; bug6037(q, true); return 401; } static assert(bug6037outer() == 401);
https://github.com/D-Programming-Language/dmd/commit/2605252929c5122341d3ecae77df1374e4131059 https://github.com/D-Programming-Language/dmd/commit/75fc400041049ab89f0ac5764a3ee7620db02d88
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル