blob: d6574a2b79c9c48d5bd8c33540dcf8d3b6ee4832 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Build don't link:
struct A {
int operator ++(); // ERROR - candidates
void operator ()(); // ERROR - candidates
void operator delete(void*); // ERROR - candidates
};
struct B {
int operator ++(int); // ERROR - candidates
void operator ()(); // ERROR - candidates
void operator delete(void*); // ERROR - candidates
void f();
};
struct C : public A, public B {
};
void f()
{
C c;
C* cp;
delete cp; // ERROR - ambiguous
c(); // ERROR - ambiguous
c++; // ERROR - ambiguous
}
|