FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900208_02.C
blob7e99abdb00f8f86bd46c7448c96b053045f75deb
1 // g++ 1.36.1 bug 900208_02
3 // g++ does not allow a static member of a class/struct/union to be
4 // declared as an array without an explicit upper bound.
6 // Cfront 2.0 passes this test.
8 // keywords: static data members, arrays, dimension, array bound
10 class class0 {
11 public:
12   static int class0_data_member_0[];    // gets bogus error
15 int class0::class0_data_member_0[3] = { 1, 2, 3 };  // gets bogus error
17 int main () { return 0; }