| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-options -fno-new-inheriting-ctors } |
| 3 |
|
| 4 |
struct A |
| 5 |
{ |
| 6 |
A(int, ...); // { dg-message "declared here" } |
| 7 |
}; |
| 8 |
|
| 9 |
struct B: A |
| 10 |
{ |
| 11 |
using A::A; // { dg-warning "ellipsis" } |
| 12 |
}; |
| 13 |
|
| 14 |
B b1(42); |
| 15 |
B b2(42, 1.0); // { dg-error "no match" } |