diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-04 22:37:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-04 22:37:26 +0000 |
commit | 5e208e74b37744d823fdf438ee0d0841dfdac055 (patch) | |
tree | ba9f58ec0698bbf358f377fed88c5adf39581ca5 /gcc | |
parent | bdc4349d7eece0bc3aaf864ee3b32fe8cc3637a3 (diff) | |
download | gcc-5e208e74b37744d823fdf438ee0d0841dfdac055.zip gcc-5e208e74b37744d823fdf438ee0d0841dfdac055.tar.gz gcc-5e208e74b37744d823fdf438ee0d0841dfdac055.tar.bz2 |
Don't crash when adding function calls that return multiple results.
From-SVN: r168487
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 0216537..a8faa35 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(); } |