rt_gccstream/gcc/testsuite/g++.dg/cpp0x/vt-37737-2.C

16 lines
202 B
C

// { dg-options "-std=c++0x" }
template<class U, class... T>
void f()
{
f<T...>(); // { dg-error "no matching" }
}
template<>
void f() { } // { dg-error "template-id" }
int main()
{
f<char>();
}