In fact any mismatched [ will do it. -------------------- void main() { asm { inc [; } }
Added to DStress as http://dstress.kuehne.cn/nocompile/a/asm_02_A.d http://dstress.kuehne.cn/nocompile/a/asm_02_B.d http://dstress.kuehne.cn/nocompile/a/asm_02_C.d http://dstress.kuehne.cn/nocompile/a/asm_02_D.d http://dstress.kuehne.cn/nocompile/a/asm_02_E.d http://dstress.kuehne.cn/nocompile/a/asm_02_F.d
*** Bug 1710 has been marked as a duplicate of this bug. ***
Created attachment 307 [details] Check for TOKeof. This is crashing because it runs out of tokens, and tries to print the unexpected character as an error message - but there is no character, it's out of tokens. The attached patch checks for TOKeof before spitting out the "unexpected character" error, and says that character is ";" (which is must always be, since that's the only way an AsmStatement is created.) -[Unknown]
Fixed DMD2.030 and 1.045.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル