Bug 5727 – "ptr" in inline asm

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-03-10T13:13:12Z
Last change time
2017-11-23T13:58:45Z
Keywords
bootcamp, diagnostic, iasm
Assigned to
No Owner
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-03-10T13:13:12Z
D2 code: void main() { uint u; uint* ptr = &u; asm { rol [ptr], 8; } } With DMD 2.052 it generates an error message that can't be understood and wastes time of the programmer, so I suggest to improve it: test.d(5): ] expected instead of 'ptr'
Comment #1 by razvan.nitu1305 — 2017-11-23T13:58:45Z
On ubuntu 16.04 git HEAD compilation fails with : "expression expected not ptr" which is fine. Closing as fixed