Bug 24544 – asm grammar dosn't covers bracket syntax

Status
NEW
Severity
enhancement
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-05-07T18:59:09Z
Last change time
2024-12-15T15:28:16Z
Assigned to
No Owner
Creator
Mai Lapyst
Moved to GitHub: dlang.org#4004 →

Comments

Comment #0 by info — 2024-05-07T18:59:09Z
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 } ```
Comment #1 by robert.schadek — 2024-12-15T15:28:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4004 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB