1 // RUN: %clang_cc1 %s -verify
8 iterator
begin() { return iterator(); }
13 typedef container
<T
> Container
;
15 Container::iterator i
= c
.begin(); // expected-error{{missing 'typename'}}
22 template <typename Key
, typename Value
>
24 class const_iterator
{ void operator++(); };
25 const_iterator
begin() const;
26 const_iterator
end() const;
29 template <typename KeyType
, typename ValueType
>
30 void MapTest(hash_map
<KeyType
, ValueType
> map
) {
31 for (hash_map
<KeyType
, ValueType
>::const_iterator it
= map
.begin(); // expected-error{{missing 'typename'}}
32 it
!= map
.end(); it
++) {
45 typedef container
<T
> Container
;
47 Container::iterator
const i
; // expected-error{{missing 'typename'}}