[Issue 5727] New: "ptr" in inline asm

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 10 13:16:16 PST 2011


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 at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list