OSDN Git Service

Revert XFAIL removal.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash6.C
1 // Build don't link:
2
3 template <class T> class List;
4  
5 template <class T>
6 struct ListIterator
7 {
8   ListIterator ();
9   ListIterator (const ListIterator<T>& rhs);
10 };
11
12 template <class T>
13 struct List
14 {
15   void length () const {
16     for (ListIterator<T> li; li; ); // ERROR - used where a `bool'
17   }
18 };
19
20 void test(List<int>& vals)
21 {
22   vals.length();  // ERROR - instantiated from here
23 }