// Verify we note even non-template candidates when diagnosing // overload resolution failure for a template-id. // { dg-additional-options "-fdiagnostics-all-candidates" } template void f(T); // { dg-message "candidate .:" } void f(int); // { dg-message {candidate .: 'void f\(int\)' \(ignored\)} } int main() { f(0, 0); // { dg-error "no match" } }