March 10, 2011 [Issue 5727] New: "ptr" in inline asm | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5727 Summary: "ptr" in inline asm Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-03-10 13:13:12 PST --- 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' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation