// { dg-do compile { target c++11 } } template struct A; template struct A {}; // { dg-error "must be at the end" } A a; // { dg-error "incomplete" }