URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [overload/] [builtin1.C] - Rev 12
Compare with Previous | Blame | View Log
// Test that we don't discard builtin candidates inappropriately.
struct B { };
struct A {
operator int ();
operator B ();
};
void operator+ (B, B); // { dg-error "" "candidate" }
int main ()
{
A a;
a + a; // { dg-error "" "ambiguous" }
}