From 5e208e74b37744d823fdf438ee0d0841dfdac055 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 4 Jan 2011 22:37:26 +0000 Subject: [PATCH] Don't crash when adding function calls that return multiple results. From-SVN: r168487 --- gcc/go/gofrontend/types.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 02165371503..a8faa35e0f6 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -401,6 +401,11 @@ Type::are_identical(const Type* t1, const Type* t2, bool errors_are_identical, return t1->interface_type()->is_identical(t2->interface_type(), errors_are_identical); + case TYPE_CALL_MULTIPLE_RESULT: + if (reason != NULL) + *reason = "invalid use of multiple value function call"; + return false; + default: gcc_unreachable(); } -- 2.30.2