1// Build don't link: 2 3template <class T> class List; 4 5template <class T> 6struct ListIterator 7{ 8 ListIterator (); 9 ListIterator (const ListIterator<T>& rhs); 10}; 11 12template <class T> 13struct List 14{ 15 void length () const { 16 for (ListIterator<T> li; li; ); // ERROR - used where a `bool' 17 } 18}; 19 20void test(List<int>& vals) 21{ 22 vals.length(); 23} 24