2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900210_10.C
blobb1b1067276db9c516dea853146f3656b48f83116
1 // { dg-do assemble  }
2 // g++ 1.36.1 bug 900210_10
4 // g++ allows operator[] to be declared as a static member function.
5 // This is illegal.
7 // Cfront 2.0 passes this test.
9 // keywords: operator[], static function members
11 struct struct0 {
12   static int operator[] ();             /* { dg-error "" } */
15 int main () { return 0; }