www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14047] New: "this" missing from AsmPrimaryExp grammar

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

          Issue ID: 14047
           Summary: "this" missing from AsmPrimaryExp grammar
           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

Here's some example code from the website:

struct Foo   // or class
{
    int a,b,c;
    int bar()
    {
        asm
        {
            mov EBX, this   ;
            mov EAX, b[EBX] ;
        }
    }
}

The grammar does not allow this. It has no rules containing the "this" keyword.

--
Jan 26 2015