digitalmars.D.bugs - [Issue 5302] New: Inline assembler: Indexing struct fields not possible inside member function
- d-bugmail puremagic.com (22/22) Dec 01 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5302
- d-bugmail puremagic.com (10/10) Dec 01 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5302
- d-bugmail puremagic.com (7/7) Dec 02 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5302
- d-bugmail puremagic.com (9/9) Dec 02 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5302
http://d.puremagic.com/issues/show_bug.cgi?id=5302
Summary: Inline assembler: Indexing struct fields not possible
inside member function
Product: D
Version: unspecified
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: htvennik zonnet.nl
---
DMD 2.050
An instruction like:
mov EAX, Struct.field[EDX];
compiles OK in free functions, but when inside a member function, the compiler
complains about a wrong type of 'this' for type Struct.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 01 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5302
bearophile_hugs eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs eml.cc
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: -------
Dec 01 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5302 --- Created an attachment (id=836) Failing code -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 02 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5302 --- (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: -------
Dec 02 2010









d-bugmail puremagic.com 