From patchwork Fri Sep 21 22:11:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Go patch committed: Better error message for single- multiple- value Date: Fri, 21 Sep 2012 12:11:38 -0000 From: Ian Taylor X-Patchwork-Id: 185960 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com This patch to the Go frontend adds some missing dashes to error messages. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian diff -r fb59d6712068 go/gogo.cc --- a/go/gogo.cc Fri Sep 21 14:06:10 2012 -0700 +++ b/go/gogo.cc Fri Sep 21 15:05:27 2012 -0700 @@ -4224,7 +4224,7 @@ 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(); } diff -r fb59d6712068 go/types.cc --- a/go/types.cc Fri Sep 21 14:06:10 2012 -0700 +++ b/go/types.cc Fri Sep 21 15:05:27 2012 -0700 @@ -421,7 +421,7 @@ 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 @@ 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; } }