blob: 21891f1c03758da33373dfbf3d6b0fedba3b74e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// { dg-do compile { target c++11 } }
template<class U, class... T>
void f() // { dg-message "note" }
{
f<T...>(); // { dg-error "no matching" }
// { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 6 }
}
template<>
void f() { } // { dg-error "template-id" }
int main()
{
f<char>();
}
|