[Issue 24544] New: asm grammar dosn't covers bracket syntax
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue May  7 18:59:09 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24544
          Issue ID: 24544
           Summary: asm grammar dosn't covers bracket syntax
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: info at lapyst.by
The current grammar for asm statements does not cover the following code:
```d
asm {
  mov ECX, [ESP + 1]
}
```
While there exists a rule in `AsmBrExp` that allows for some brackets, they
require an expression before the beginning bracket:
```d
void* pc;
asm {
  mov  pc[EBP],EBX
}
```
--
    
    
More information about the Digitalmars-d-bugs
mailing list