Bug 5740 – Unable to use "this" pointer in inline assembly

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2011-03-15T07:31:00Z
Last change time
2017-07-07T12:54:25Z
Keywords
iasm
Assigned to
nobody
Creator
govellius

Comments

Comment #0 by govellius — 2011-03-15T07:31:49Z
class Test { void test(int n) { asm { mov RAX, this; } } } test.d(4): 2 operands found for mov instead of the expected 1
Comment #1 by bugzilla — 2011-03-29T16:16:57Z
Comment #2 by bugzilla — 2011-03-29T16:40:59Z