URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [crash24.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Jakub Jelinek <jakub@redhat.com>
class foo {
public:
class __iterator;
friend class __iterator;
typedef __iterator const_iterator;
virtual ~foo() { }
__iterator begin(); // { dg-message "candidate is" }
};
static void iteratorTest(const foo &x)
{
foo::const_iterator i = x.begin(); // { dg-error "incomplete type" "incomplete type" }
// { dg-error "no matching" "no matching" { target *-*-* } 14 }
for (; i; ++i)
*i;
}
Go to most recent revision | Compare with Previous | Blame | View Log