| 1 |
// { dg-do assemble } |
| 2 |
// Here is another program from the net. |
| 3 |
|
| 4 |
class B; |
| 5 |
|
| 6 |
class A { // { dg-message "note" } copy ctor candidate |
| 7 |
private: |
| 8 |
A(B *); // { dg-message "note" } |
| 9 |
public: |
| 10 |
A(long); // { dg-message "note" } |
| 11 |
}; |
| 12 |
|
| 13 |
A a(0); // { dg-error "ambiguous" } |