aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bugs/900208_02.C
blob: 7e99abdb00f8f86bd46c7448c96b053045f75deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// g++ 1.36.1 bug 900208_02

// g++ does not allow a static member of a class/struct/union to be
// declared as an array without an explicit upper bound.

// Cfront 2.0 passes this test.

// keywords: static data members, arrays, dimension, array bound

class class0 {
public:
  static int class0_data_member_0[];	// gets bogus error
};

int class0::class0_data_member_0[3] = { 1, 2, 3 };  // gets bogus error

int main () { return 0; }