aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error51.C
blob: 304a13a70fb00ed23e618085f41a9dd2c736d788 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/26572

template<int> void foo()
{
  struct A;                // { dg-message "declaration" }
  struct B : A {};         // { dg-error "invalid use of incomplete" }
}

template void foo<0>();