Commit e811e209 by Ian Lance Taylor

Don't permit string index expression to have abstract types.

From-SVN: r170390
parent 5b32f0e6
...@@ -9567,10 +9567,9 @@ void ...@@ -9567,10 +9567,9 @@ void
String_index_expression::do_determine_type(const Type_context*) String_index_expression::do_determine_type(const Type_context*)
{ {
this->string_->determine_type_no_context(); this->string_->determine_type_no_context();
Type_context subcontext(NULL, true); this->start_->determine_type_no_context();
this->start_->determine_type(&subcontext);
if (this->end_ != NULL) if (this->end_ != NULL)
this->end_->determine_type(&subcontext); this->end_->determine_type_no_context();
} }
// Check types of a string index. // Check types of a string index.
......
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