diff --git a/src/google/protobuf/map_field.cc b/src/google/protobuf/map_field.cc index dbce28eaa0..880f3e188f 100644 --- a/src/google/protobuf/map_field.cc +++ b/src/google/protobuf/map_field.cc @@ -281,7 +281,7 @@ void DynamicMapField::MergeFrom(const MapFieldBase& other) { Map* map = MutableMap(); const DynamicMapField& other_field = reinterpret_cast(other); - for (typename Map::const_iterator other_it = + for (Map::const_iterator other_it = other_field.map_.begin(); other_it != other_field.map_.end(); ++other_it) { Map::iterator iter = map->find(other_it->first);