If function parameters have default values, and that of the second
parameter is parsed with errors, function declaration would have
a parameter without default value that follows a parameter with
that. Such declaration breaks logic of selecting overloaded
function.
As a solution, erase default value of all parameters that precedes
the erroneous parameter.
This patch fixes PR20055.