www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1061] New: "asm inc [;" segfaults compiler.

reply d-bugmail puremagic.com writes:
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 [; }
}


-- 
Mar 14 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1061


thomas-dloop kuehne.cn changed:

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





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


-- 
Mar 29 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1061


clugdbug yahoo.com.au changed:

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





*** Bug 1710 has been marked as a duplicate of this bug. ***


-- 
Dec 03 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1061






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]


-- 
Mar 29 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1061


Don <clugdbug yahoo.com.au> changed:

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





Fixed DMD2.030 and 1.045.

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