>>435
sizeof (C)とするか、一旦定数として定義してやるとできた。
void f() {
  const std::size_t this_size = sizeof *this;
  T<this_size>* p;
}