2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash24.C
blob09e9788e26f8b100ee011257f6e36caffa4ece58
1 // { dg-do assemble  }
2 // Origin: Jakub Jelinek <jakub@redhat.com>
4 class foo {
5  public:
6    class __iterator;
7    friend class __iterator;
8    typedef __iterator const_iterator;
9    virtual ~foo() { }
10    __iterator begin();                          // { dg-error "" } 
12 static void iteratorTest(const foo &x)
14    foo::const_iterator i = x.begin();           // { dg-error "" } 
15    for (; i; ++i)
16       *i;