blob: 6a2f3b5ba35abadf1f235dbff9e70a0cdae80e44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Verify we note all three candidates when diagnosing overload
// resolution failure. The presence of the first two (ambiguous)
// non-strictly viable candidates used to make us prune the third
// and not note it.
void f(int, int*); // { dg-message "candidate" }
void f(int*, int); // { dg-message "candidate" }
void f(int, int, int); // { dg-message "candidate" }
int main() {
f(1, 2); // { dg-error "no match|invalid conversion" }
}
|