Debian Codegraph @

gcc/testsuite/g++.dg/overload/error6.C

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