Summary: Inline assembler: Indexing struct fields not possible
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Denis Shelomovskij <> 2012-05-12 
07:37:14 MSD ---
Example from
struct Foo { int a,b,c; }
int bar(Foo *f) {
    asm {
        mov EBX, f;
        mov EAX, Foo.b[EBX];
main.d(5): Error: variable b cannot be read at compile time

Also see Issue 5302

Workaround: add .offsetof

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to