Commit 1c4a5fc8 by Ian Lance Taylor

Don't let array indexes be untyped.

From-SVN: r170193
parent 8d620a1a
...@@ -9225,10 +9225,9 @@ void ...@@ -9225,10 +9225,9 @@ void
Array_index_expression::do_determine_type(const Type_context*) Array_index_expression::do_determine_type(const Type_context*)
{ {
this->array_->determine_type_no_context(); this->array_->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 an array index. // Check types of an array 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