1061 – "asm inc [;" segfaults compiler.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1061 - "asm inc [;" segfaults compiler.
Summary: "asm inc [;" segfaults compiler.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P2 normal
Assignee: Walter Bright
URL:
Keywords: ice-on-invalid-code, patch
: 1710 (view as issue list)
Depends on:
Blocks:
Reported: 2007年03月14日 06:44 UTC by Don
Modified: 2014年02月16日 15:22 UTC (History)
2 users (show)

See Also:


Attachments
Check for TOKeof. (454 bytes, patch)
2009年03月30日 01:29 UTC, Unknown W. Brackets
Details | Diff
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2007年03月14日 06:44:22 UTC
In fact any mismatched [ will do it.
--------------------
void main() {
 asm { inc [; }
}
Comment 2 Don 2007年12月03日 02:37:26 UTC
*** Bug 1710 has been marked as a duplicate of this bug. ***
Comment 3 Unknown W. Brackets 2009年03月30日 01:29:54 UTC
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]
Comment 4 Don 2009年05月14日 01:31:28 UTC
Fixed DMD2.030 and 1.045.


AltStyle によって変換されたページ (->オリジナル) /