<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - invalid code generation with -O2 for method returning ref"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=179#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - invalid code generation with -O2 for method returning ref"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=179">bug 179</a>
from <span class="vcard"><a class="email" href="mailto:ibuclaw@gdcproject.org" title="Iain Buclaw <ibuclaw@gdcproject.org>"> <span class="fn">Iain Buclaw</span></a>
</span></b>
<pre>Reduced:
---
struct SignalImpl
{
@disable this(this);
}
struct RestrictedSignal
{
SignalImpl mImpl;
void connect() { }
}
struct Signal
{
RestrictedSignal mRestricted;
}
class MyObject
{
Signal valueChangedSg;
ref RestrictedSignal valueChanged()
{
return valueChangedSg.mRestricted;
}
}
int main ()
{
MyObject a = new MyObject;
a.valueChanged().connect();
return 0;
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>