https://issues.dlang.org/show_bug.cgi?id=20416
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Walter Bright <[email protected]> --- A simpler test case: alias P = int*; ref P foo(return ref P); P bar() { P result; return foo(result); } dmd -c test -dip1000 test.d(12): Error: returning foo(result) escapes a reference to local variable result --
