// PR c++/31441 // { dg-options "-std=gnu++0x" } template struct A; template struct A { }; // { dg-error "cannot expand" } A a; // { dg-error "incomplete type" }