// { dg-do compile { target c++11 } } template struct A; template struct A<> {}; // { dg-error "not used in partial specialization|anonymous|declaration" } template struct A : A {}; // { dg-error "incomplete type" } A a;