Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/crash6.C

raw
1 // { dg-do assemble }
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; ); // { dg-error "" } used where a `bool'
17 }
18 };
19
20 void test(List<int>& vals)
21 {
22 vals.length();
23 }