// PR c++/26572 template void foo() { struct A; // { dg-error "declaration" } struct B : A {}; // { dg-error "invalid use of incomplete" } } template void foo<0>();