URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [overload/] [ambig1.C] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
// [over.best.ics]: For the purpose of ranking implicit conversion
// sequences as described in _over.ics.rank_, the ambiguous conversion
// sequence is treated as a user-defined sequence that is indistinguishable
// from any other user- defined conversion sequence.
struct A
{
A(long);
A(char);
};
struct B
{
B(int);
};
void f(A); // { dg-message "note" "candidate" }
void f(B); // { dg-message "note" "candidate" }
int main()
{
f (42); // { dg-error "ambiguous" "ambiguous" }
}
Go to most recent revision | Compare with Previous | Blame | View Log