"Recursive template instantiation exceeded" build failure(s) — clang 6.0

template  struct X {
  static const int value = X::value;
};

template struct X<1000>;

No error detected for version 6.0