Commit 222d4beb by Ian Lance Taylor

compiler: Better error messages for single- and multiple- value.

From-SVN: r191621
parent e1520358
......@@ -4224,7 +4224,7 @@ Variable::determine_type()
else if (type->is_call_multiple_result_type())
{
error_at(this->location_,
"single variable set to multiple value function call");
"single variable set to multiple-value function call");
type = Type::make_error_type();
}
......
......@@ -421,7 +421,7 @@ Type::are_identical(const Type* t1, const Type* t2, bool errors_are_identical,
case TYPE_CALL_MULTIPLE_RESULT:
if (reason != NULL)
*reason = "invalid use of multiple value function call";
*reason = "invalid use of multiple-value function call";
return false;
default:
......@@ -627,8 +627,8 @@ Type::are_assignable_check_hidden(const Type* lhs, const Type* rhs,
if (rhs->is_call_multiple_result_type())
{
if (reason != NULL)
reason->assign(_("multiple value function call in "
"single value context"));
reason->assign(_("multiple-value function call in "
"single-value context"));
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment