OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_10.C
1 // g++ 1.36.1 bug 900210_10
2
3 // g++ allows operator[] to be declared as a static member function.
4 // This is illegal.
5
6 // Cfront 2.0 passes this test.
7
8 // keywords: operator[], static function members
9
10 struct struct0 {
11   static int operator[] ();             /* ERROR - */
12 };
13
14 int main () { return 0; }