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: [email protected]
Reporter: [email protected]
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
}
```
--