URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// [over.best.ics]: For the purpose of ranking implicit conversion
|
// [over.best.ics]: For the purpose of ranking implicit conversion
|
// sequences as described in _over.ics.rank_, the ambiguous conversion
|
// sequences as described in _over.ics.rank_, the ambiguous conversion
|
// sequence is treated as a user-defined sequence that is indistinguishable
|
// sequence is treated as a user-defined sequence that is indistinguishable
|
// from any other user- defined conversion sequence.
|
// from any other user- defined conversion sequence.
|
|
|
struct A
|
struct A
|
{
|
{
|
A(long);
|
A(long);
|
A(char);
|
A(char);
|
};
|
};
|
|
|
struct B
|
struct B
|
{
|
{
|
B(int);
|
B(int);
|
};
|
};
|
|
|
void f(A); // { dg-error "" "candidate" }
|
void f(A); // { dg-error "" "candidate" }
|
void f(B); // { dg-error "" "candidate" }
|
void f(B); // { dg-error "" "candidate" }
|
|
|
int main()
|
int main()
|
{
|
{
|
f (42); // { dg-error "ambiguous" "ambiguous" }
|
f (42); // { dg-error "ambiguous" "ambiguous" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.