URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [crash6.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
template <class T> class List;
template <class T>
struct ListIterator
{
ListIterator ();
ListIterator (const ListIterator<T>& rhs);
};
template <class T>
struct List
{
void length () const {
for (ListIterator<T> li; li; ); // { dg-error "" } used where a `bool'
}
};
void test(List<int>& vals)
{
vals.length();
}
Go to most recent revision | Compare with Previous | Blame | View Log