[Bug 57] Comparing small structs fails

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue May 28 14:55:44 PDT 2013


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

--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> 2013-05-28 21:55:44 UTC ---
Update:

https://github.com/D-Programming-GDC/GDC/commit/58f03823aeb72109a69673f111092548aca081f5


Actually got both cases in one hit this time...

---
static struct Foo
{
    static Foo opCall(int n, int m) { Foo foo; return foo; }
}


Foo foo;
assert (foo(1,2) == Foo.init);
---

The above was failing for 32bit only, with optimisations disabled.  (See
opover3.d).

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