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