// PR c++/31441 // { dg-do compile { target c++11 } } template struct A; template struct A { }; // { dg-bogus "cannot expand" "" } A a; // { dg-bogus "incomplete type" "" }