[Bug 57] Comparing small structs fails

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Wed May 29 11:01:29 PDT 2013


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

--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject.org> 2013-05-29 18:01:29 UTC ---
(In reply to comment #6)
> (In reply to comment #5)
> > Nice work!
> > 
> > But I can still reproduce this with the posted test case (GCC 4.8.0) if I
> > compile without optimization. With -O2 or higher it works fine.
> > 
> 
> Drats - should have tried that test case.... 
> 

I actually might have an idea of where that is happening (see
convert_for_assignment) - can't test it just now as I'm travelling.  But I
wonder what happens if you move the memset added in AssignExp::toElem into
there - so that all struct = int (0) code is caught and handled properly...

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