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

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

template void foo<0>();