[Issue 1061] "asm inc [;" segfaults compiler.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 29 23:29:50 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=1061





------- Comment #3 from unknown at simplemachines.org  2009-03-30 01:29 -------
Created an attachment (id=307)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=307&action=view)
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]


-- 



More information about the Digitalmars-d-bugs mailing list