https://issues.dlang.org/show_bug.cgi?id=19774
ag0aep6g <ag0ae...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ag0ae...@gmail.com --- Comment #1 from ag0aep6g <ag0ae...@gmail.com> --- Slighlty more reduced: ---- C bar() { return C(42); } C foo() { return bar()[1]; } struct C { int x; ~this() { x = 0; } C opIndex(int a) { return this; } } void main() { auto c = foo(); assert(c.x == 42); /* fails; should pass */ } ---- --