[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
https://issues.dlang.org/show_bug.cgi?id=5302 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #5 from Walter Bright --- The parser for the iasm operator expressions is quite limited compared with the regular D expressions is quite limited. It is also different in order to be like the Intel assembler syntax. However, this case can be handled using: mov EAX, S.i.offsetof[EDX]; instead of: mov EAX, S.i[EDX]; Marked as invalid because there is a way to make it work. --
[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
https://issues.dlang.org/show_bug.cgi?id=5302 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #4 from Walter Bright --- The attachment: module iasm_test; struct S { uint i; } class A { uint func(S* s) { asm { mov EDX, s; mov EAX, S.i[EDX]; } } } --
[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
https://issues.dlang.org/show_bug.cgi?id=5302 Andrei Alexandrescu changed: What|Removed |Added Keywords||bootcamp CC||and...@erdani.com --
[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
https://issues.dlang.org/show_bug.cgi?id=5302 Andrei Alexandrescu changed: What|Removed |Added Version|D1 & D2 |D2 --
[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
http://d.puremagic.com/issues/show_bug.cgi?id=5302 --- Comment #3 from Harry Vennik 2010-12-02 07:55:26 PST --- (From update of attachment 836) Compiling this results in the following error message: iasm_test.d(15): Error: this for i needs to be type S not type iasm_test.A iasm_test.d(15): bad type/size of operands '(__error).i' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
http://d.puremagic.com/issues/show_bug.cgi?id=5302 --- Comment #2 from Harry Vennik 2010-12-02 07:52:48 PST --- Created an attachment (id=836) Failing code -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5302] Inline assembler: Indexing struct fields not possible inside member function
http://d.puremagic.com/issues/show_bug.cgi?id=5302 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #1 from bearophile_h...@eml.cc 2010-12-01 12:29:54 PST --- Please, if possible add a complete minimal program that shows the problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---