On Friday, 25 April 2014 at 12:07:00 UTC, Steven Schveighoffer wrote: > It could. I don't think the compiler is smart enough, as it > would need to verify result doesn't go anywhere (flow analysis). In that case I'd like to see recursive inlining, if it makes stack allocations more probable.