www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [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



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: -------
Mar 10 2011