| 1 |
// PR c++/42055 |
| 2 |
|
| 3 |
template<typename T> void foo(T, T); // { dg-message "candidates|template" } |
| 4 |
|
| 5 |
template<typename T> void foo(T, int); // { dg-message "template" } |
| 6 |
|
| 7 |
template void foo(int, int); // { dg-error "ambiguous template specialization" } |