1// PR c++/26572 2 3template<int> void foo() 4{ 5 struct A; // { dg-message "declaration" } 6 struct B : A {}; // { dg-error "invalid use of incomplete" } 7} 8 9template void foo<0>(); 10