gcc/testsuite/g++.old-deja/g++.robertl/eb9.C
raw| 1 | // { dg-do assemble } |
| 2 | template <class Key> |
| 3 | class d0om_Hashmap |
| 4 | { |
| 5 | public: |
| 6 | typedef int value_type; |
| 7 | |
| 8 | class iterator |
| 9 | { |
| 10 | public: |
| 11 | value_type* operator-> () const; |
| 12 | }; |
| 13 | |
| 14 | }; |
| 15 | |
| 16 | |
| 17 | template <class Key> |
| 18 | typename d0om_Hashmap<Key>::value_type* |
| 19 | d0om_Hashmap<Key>::iterator::operator-> () const |
| 20 | { |
| 21 | return 0; |
| 22 | } |