[Bug 57] Comparing small structs fails

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue May 28 13:24:17 PDT 2013


http://bugzilla.gdcproject.org/show_bug.cgi?id=57

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> 2013-05-28 20:24:17 UTC ---
Can't post patch here as it's on another computer but it's essentially:

-- AssignExp::toElem
remove sle->fillHoles code.


-- StructLiteralExp::toElem
Put fillHoles code here and create temp var so codegen turns into.

struct tmp;
memset (&tmp, sizeof(struct), 0), tmp = { ctor }, tmp;

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the D.gnu mailing list