Don't use the compiler. Try to predict the behavior.
Code:
#include <iostream>

using namespace std;

class B
{
public:
  static int i;
  static int j;
};

static int i = 3;
int B::j = i + 5;
int B::i = 5;

int main()
{
  cout << "j == " << B::j << endl
       << "i == " << B::i << endl;
  return 0;
}