diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-02-15 19:06:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-02-15 19:06:34 +0000 |
commit | 1c4a5fc8caa525a85b92e737d86275a857fa2874 (patch) | |
tree | 9ce3a367768bb2a424d3efd0fc85a629ed0c88e8 /gcc/go | |
parent | 8d620a1a26f18400eda6130f42aac8f00c8d291f (diff) | |
download | gcc-1c4a5fc8caa525a85b92e737d86275a857fa2874.zip gcc-1c4a5fc8caa525a85b92e737d86275a857fa2874.tar.gz gcc-1c4a5fc8caa525a85b92e737d86275a857fa2874.tar.bz2 |
Don't let array indexes be untyped.
From-SVN: r170193
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 96636c1..940d418 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -9225,10 +9225,9 @@ void Array_index_expression::do_determine_type(const Type_context*) { this->array_->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 an array index. |