FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash18.C
blob8cccfcb6d884741cebe7cb5776f4597f7be00e4e
1 // Build don't link: 
2 // GROUPS passed old-abort
3 typedef int element;
4 class Pix {
5 public:
6     Pix();
7     Pix(const Pix&);
9     // Friend functions so that v == x works as does x == v works
10     friend int operator==(void *v, const Pix& x)
11         { return v == index; }// ERROR - .*
12     friend int operator==(void *v, const Pix& x)
13         { return v != index; }// ERROR - .*
14 private:
15 //    friend class List<T>;
16     element *index; // ERROR - invalid use of member