The DMD compiler crashes when I compile the code below (using DMD v1.033, Windows XP). The compiler do identify the first error: main.d(8): Error: foreach: void is not an aggregate type but then I get an assertion failure: Assertion failure: '0' on line 122 in file 'statement.c' This is perhaps a strange error and I don't know if anyone else have seen it. I do get the error even though I don't use the -debug flag. The error doesn't occur if I remove the "debug Object foo"-line. module main; public void bar() { } void main() { foreach(Object o ; bar()){ debug Object foo = null; //error } } regards Joel
*** Bug 2261 has been marked as a duplicate of this bug. ***
Fixed dmd 1.034 and 2.018
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル