blob: d7b797af8e0fc9b1795efbeb170d930b09f91882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Build don't link:
// prms-id: 807
// See ARM page 275 Section 12.3.2
extern "C" void printf (char *, ...);
extern "C" void exit(int);
class B;
class A {
public:
A(B&); // ERROR - fn ref in err msg
};
class B {
public:
operator A(); // ERROR - fn ref in err msg
};
B b;
A a = b; // ERROR - should fail as it is ambigious.
|