D-Programming-Language/dmd — pull request #1163 by AndrejMitrovic (2012-10-04 17:58:04+00:00)
Title: Fix Issue 7603 - Default initializer for ref/out must be an lvalue

http://d.puremagic.com/issues/show_bug.cgi?id=7603

Currently the compiler verifies this but only if the function is **invoked** with no arguments. It was still allowing the function to compile if you passed an argument.

With this pull the default argument is checked during the parsing stage of the function parameters.