[Issue 14009] New: iasm parser accepts incorrest AsmExp

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 19 05:56:26 PST 2015


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

          Issue ID: 14009
           Summary: iasm parser accepts incorrest AsmExp
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid, iasm, rejects-valid
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: k.hara.pg at gmail.com

The first instruction should be accepted, and the second one should be
rejected.

void main()
{
    asm {
      //mov EAX, FS: 1 ? 2 : 3;     // wrongly rejected with: Error: colon
        mov EAX, FS: 1 ? 2 : : 3;   // wrongly accepted
    }
}

--


More information about the Digitalmars-d-bugs mailing list