summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/incomplete3.C
blob: 8a20bba74d572ebe71b7c9c5ef0ed76112ad6fd7 (plain)
1
2
3
4
5
// PR c++/27315
// { dg-do compile }

struct A;                  // { dg-error "forward declaration" }
template void A::foo<0>(); // { dg-error "before|incomplete" }