https://issues.dlang.org/show_bug.cgi?id=21369
apham <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from apham <[email protected]> --- Create temp var is OK struct S { int *val; ref int get() { return *val; } alias get this; } void foo(ref int x) {} void main() { int x; auto s = S(&x); foo(s); } --
