i386: Allow all register_operand SUBREGs in x86_ternlog_idx.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash24.C
blob8f0e545e7a7b5d109324c2507c7bd8abafd138b5
1 // { dg-do assemble  }
2 // Origin: Jakub Jelinek <jakub@redhat.com>
4 class foo {
5  public:
6    class __iterator;            // { dg-message "declaration" }
7    friend class __iterator;
8    typedef __iterator const_iterator;
9    virtual ~foo() { }
10    __iterator begin();                          // { dg-message "foo::begin|no known conversion for implicit" } 
12 static void iteratorTest(const foo &x)
14    foo::const_iterator i = x.begin();           // { dg-error "incomplete type" "incomplete type" } 
15    // { dg-error "const foo" "" { target *-*-* } .-1 }
16    for (; i; ++i)
17       *i;