What's the right behaviour for this program? I think the CTFE has to stop, but dmd v2.042 doesn't stop to me: import std.c.stdlib: exit; int foo() { exit(1); return 100; } static assert(foo() == 100); void main() { assert(foo() == 100); exit(1); }
The bug is quite different: CTFE calls to void functions without source code don't generate any error messages, so they are effectively ignored.
changeset 429
Fixed DMD1.058 and DMD2.043.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル