FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_10.C
blob26c17218e77134c5aedb5e981c7da0f9ff535ac5
1 // g++ 1.36.1 bug 900210_10
3 // g++ allows operator[] to be declared as a static member function.
4 // This is illegal.
6 // Cfront 2.0 passes this test.
8 // keywords: operator[], static function members
10 struct struct0 {
11   static int operator[] ();             /* ERROR - */
14 int main () { return 0; }