[Issue 6669] Compiler seg fault when using square brackets in inline assembly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 22 18:37:18 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6669


Graham <grahamc001uk at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grahamc001uk at yahoo.co.uk


--- Comment #3 from Graham <grahamc001uk at yahoo.co.uk> 2011-09-22 18:36:47 PDT ---
I would think you need to ensure EAX points to somewhere readable to avoid a
seg fault. E.g.:

void main()
{
    int i;
    asm { lea EAX, i; }
    asm { mov EAX, [EAX]; }
}

-- 
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