gcc/testsuite/g++.dg/cpp0x/implicit15.C
raw| 1 | // PR c++/88122 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct A { |
| 5 | A (...); // { dg-message "candidate" } |
| 6 | A (); // { dg-message "candidate" } |
| 7 | }; |
| 8 | struct B : A { |
| 9 | using A::A; // { dg-error "is ambiguous" } |
| 10 | // { dg-message "is implicitly deleted because the default definition would be ill-formed" "" { target *-*-* } .-1 } |
| 11 | } b{3}; // { dg-error "use of deleted function" } |