Thread overview
[Issue 5740] New: Unable to use "this" pointer in inline assembly
Mar 15, 2011
Govelius
Mar 29, 2011
Walter Bright
Mar 29, 2011
Walter Bright
March 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5740

           Summary: Unable to use "this" pointer in inline assembly
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: hughes4@gmail.com


--- Comment #0 from Govelius <hughes4@gmail.com> 2011-03-15 07:31:49 PDT ---
class Test
{    void test(int n)
    { asm {
        mov RAX, this;
        }
    }
}

test.d(4): 2 operands found for mov instead of the expected 1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5740


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-03-29 16:16:57 PDT ---
Fix:

https://github.com/Govelius/dmd/commit/cac02ab57252ec2a062aa1a34734f4bdfc3904c3

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5740


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-03-29 16:40:59 PDT ---
https://github.com/D-Programming-Language/dmd/commit/4beaaf940ba68fa6d4783fdec4d773c2dce5ead4

https://github.com/D-Programming-Language/dmd/commit/a80efa437acdc3abbac580fea667c5ddde262825

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------