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

--- Comment #7 from Iain Buclaw <ibuc...@gdcproject.org> ---
There seems to be a key thing happening here:

---
struct SignalImpl
{
    @disable this(this);  // SignalImpl is now non-POD
}
---

Because of this, TypeFunction::toCtype sets TREE_ADDRESSABLE on functions
returning SignalImpl (which is correct behaviour, we do *not* want non-POD
types to return in registers).

However...
---
ref RestrictedSignal valueChanged()
{
    return valueChangedSg.mRestricted;  // returned by ref
}
---

Reference returns should not have TREE_ADDRESSABLE set as they are already
returning in memory.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to