https://issues.dlang.org/show_bug.cgi?id=15419
thomas.bock...@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |WONTFIX --- Comment #5 from thomas.bock...@gmail.com --- Marking this as WONTFIX. A real fix would either: 1) Use `scope ref`, if it is ever implemented, or 2) Use the `auto ref` like so (to minimize template bloat): template parse(Target, Source) if(/+constraints+/) { private Target impl(ref Source s) { /+implementation+/ } pragma(inline, true) Target parse(auto ref Source s) { return impl(s); } } The later should completely fix the problem, and be fully backwards compatible. However, it would be a large diff and might confuse ddoc, too. --