Thread overview
[Issue 1061] New: "asm inc [;" segfaults compiler.
Mar 14, 2007
d-bugmail
Mar 29, 2007
d-bugmail
Dec 03, 2007
d-bugmail
Mar 30, 2009
d-bugmail
May 14, 2009
Don
March 14, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1061

           Summary: "asm inc [;" segfaults compiler.
           Product: D
           Version: 1.009
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: clugdbug@yahoo.com.au


In fact any mismatched [ will do it.
--------------------
void main() {
    asm { inc [; }
}


-- 

March 29, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1061


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #1 from thomas-dloop@kuehne.cn  2007-03-29 14:07 -------
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


-- 

December 03, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1061


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vertex@gmx.at




------- Comment #2 from clugdbug@yahoo.com.au  2007-12-03 02:37 -------
*** Bug 1710 has been marked as a duplicate of this bug. ***


-- 

March 30, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1061





------- Comment #3 from unknown@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]


-- 

May 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1061


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Don <clugdbug@yahoo.com.au>  2009-05-14 01:31:28 PDT ---
Fixed DMD2.030 and 1.045.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------