Issue 9537 - auto ref returns a reference its own stack

https://d.puremagic.com/issues/show_bug.cgi?id=9537