Commit 3746f0c7 by Ian Lance Taylor

Don't crash on invalid use of multiple results.

From-SVN: r168222
parent 38ac6be7
...@@ -3253,26 +3253,35 @@ class Call_multiple_result_type : public Type ...@@ -3253,26 +3253,35 @@ class Call_multiple_result_type : public Type
protected: protected:
bool bool
do_has_pointer() const do_has_pointer() const
{ gcc_unreachable(); } {
gcc_assert(saw_errors());
return false;
}
tree tree
do_get_tree(Gogo*); do_get_tree(Gogo*);
tree tree
do_get_init_tree(Gogo*, tree, bool) do_get_init_tree(Gogo*, tree, bool)
{ gcc_unreachable(); } {
gcc_assert(saw_errors());
return error_mark_node;
}
Expression* Expression*
do_type_descriptor(Gogo*, Named_type*) do_type_descriptor(Gogo*, Named_type*)
{ gcc_unreachable(); } {
gcc_assert(saw_errors());
return Expression::make_error(UNKNOWN_LOCATION);
}
void void
do_reflection(Gogo*, std::string*) const do_reflection(Gogo*, std::string*) const
{ gcc_unreachable(); } { gcc_assert(saw_errors()); }
void void
do_mangled_name(Gogo*, std::string*) const do_mangled_name(Gogo*, std::string*) const
{ gcc_unreachable(); } { gcc_assert(saw_errors()); }
private: private:
// The expression being called. // The expression being called.
......
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