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