www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13301] New: Inline ASM documentation does not allow string

https://issues.dlang.org/show_bug.cgi?id=13301

          Issue ID: 13301
           Summary: Inline ASM documentation does not allow string
                    literals
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/iasm.html
                OS: All
            Status: NEW
          Keywords: iasm, spec
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com
            Blocks: 10233

An example on the inline ASM page has the following line of code:

db "abc";      // insert bytes 0x61, 0x62, and 0x63

The grammar for inline ASM does not say that string literals are legal primary
expressions.

AsmPrimaryExp:
    IntegerLiteral
    FloatLiteral
    __LOCAL_SIZE
    $
    Register
    Register64
    DotIdentifier

--
Aug 15 2014