projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cf1541
)
Don't crash when referring to method other than calling it.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 10 Feb 2011 23:07:36 +0000
(23:07 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 10 Feb 2011 23:07:36 +0000
(23:07 +0000)
From-SVN: r170028
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index 1089c6da882045205c110737284ed44f042375c9..bc27480ce2950224487cd2fb14b636dca71cdabe 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-6397,7
+6397,8
@@
Bound_method_expression::do_check_types(Gogo*)
tree
Bound_method_expression::do_get_tree(Translate_context*)
{
- gcc_unreachable();
+ error_at(this->location(), "reference to method other than calling it");
+ return error_mark_node;
}
// Make a method expression.