[Bug 57] Comparing small structs fails

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Fri May 31 16:09:14 PDT 2013


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

--- Comment #16 from Iain Buclaw <ibuclaw at gdcproject.org> 2013-05-31 23:09:14 UTC ---
Will probably keep open as this variant fails  (and probably will on all x86_64
targets).
---
struct S
{
    int a;
    long b;
    //int pad; //doesn't happen for bigger structs
}

S funcA()
{
    return S(4, 42);
}

void main()
{
  S s = funcA();
  assert (s is S(4, 42));
}

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