aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-02-22 03:44:22 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-02-22 03:44:22 +0000
commite811e20965172f3a619bee051348de8b3ee41296 (patch)
treee7307627430415ad3fbd4f3d0e5739f0cfa47c4b
parent5b32f0e6168aa3941e5b78d53409bf21ef6ceb90 (diff)
downloadgcc-e811e20965172f3a619bee051348de8b3ee41296.zip
gcc-e811e20965172f3a619bee051348de8b3ee41296.tar.gz
gcc-e811e20965172f3a619bee051348de8b3ee41296.tar.bz2
Don't permit string index expression to have abstract types.
From-SVN: r170390
-rw-r--r--gcc/go/gofrontend/expressions.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index b58792c..6440ee1 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -9567,10 +9567,9 @@ void
String_index_expression::do_determine_type(const Type_context*)
{
this->string_->determine_type_no_context();
- Type_context subcontext(NULL, true);
- this->start_->determine_type(&subcontext);
+ this->start_->determine_type_no_context();
if (this->end_ != NULL)
- this->end_->determine_type(&subcontext);
+ this->end_->determine_type_no_context();
}
// Check types of a string index.