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