blob: d144f3f288d7a8a108f4dc40d5a0e106f773b963 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Verify we note even non-template candidates when diagnosing
// overload resolution failure for a template-id.
// { dg-additional-options "-fdiagnostics-all-candidates" }
template<class T> void f(T); // { dg-message "candidate .:" }
void f(int); // { dg-message {candidate .: 'void f\(int\)' \(ignored\)} }
int main() {
f<int>(0, 0); // { dg-error "no match" }
}
|