Debian Codegraph @

gcc/testsuite/g++.dg/template/error51.C

raw
1 // PR c++/26572
2
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>();