| // RUN: %clang_cc1 %s -verify |
| iterator begin() { return iterator(); } |
| typedef container<T> Container; |
| Container::iterator i = c.begin(); // expected-error{{missing 'typename'}} |
| template <typename Key, typename Value> |
| class const_iterator { void operator++(); }; |
| const_iterator begin() const; |
| const_iterator end() const; |
| template <typename KeyType, typename ValueType> |
| void MapTest(hash_map<KeyType, ValueType> map) { |
| for (hash_map<KeyType, ValueType>::const_iterator it = map.begin(); // expected-error{{missing 'typename'}} |
| typedef container<T> Container; |
| Container::iterator const i; // expected-error{{missing 'typename'}} |