blob: c6d6fcbd4ad373405309bdd87960a9097bfd55a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Build don't link:
// GROUPS passed ambiguity
struct A {
A (int);
};
struct B {
B (int);
};
void myfunc (const A& t0); // ERROR -
void myfunc (const B& t0); // ERROR -
int main ()
{
myfunc(1); // ERROR - ambiguous call
}
|