repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash6.C
blob
34bd56409aefcda98141a4f1dff4a14315509aa9
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
}