[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-18 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 Iain Buclaw changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-18 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 --- Comment #7 from Iain Buclaw --- 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 ret

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-18 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 --- Comment #6 from Iain Buclaw --- Reduced: --- struct SignalImpl { @disable this(this); } struct RestrictedSignal { SignalImpl mImpl; void connect() { } } struct Signal { RestrictedSignal mRestricted; } class MyObject { S

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-18 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 Iain Buclaw changed: What|Removed |Added Status|RESOLVED|NEW Resolution|DUPLICATE

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-18 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 Iain Buclaw changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receiving this mail b

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-17 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-17 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 --- Comment #3 from Ketmar Dark --- also, adding 'final' either to `ref RestrictedSignal!(string, int) valueChanged ()` or to `@property void value (int v)` fixes the code too. -- You are receiving this mail because: You are watching all bug ch

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-17 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 --- Comment #2 from Ketmar Dark --- p.p.s. i'm using GCC 4.9.2 and the corresponding HEAD branch of gdc on x86. -- You are receiving this mail because: You are watching all bug changes.

[Bug 179] invalid code generation with -O2 for method returning ref

2015-04-17 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=179 Ketmar Dark changed: What|Removed |Added CC||ket...@ketmar.no-ip.org --- Comment #1 fro