1 // RUN: %clang_cc1 -std=c++11 -verify %s
2 // Per a core issue (no number yet), an ellipsis is always dropped.
4 A(...); // expected-note {{here}}
5 A(int = 0, int = 0, int = 0, int = 0, ...); // expected-note 9{{here}} expected-note 2{{constructor cannot be inherited}}
6 A(int = 0, int = 0, ...); // expected-note {{here}}
8 template<typename T> A(T, int = 0, ...); // expected-note 5{{here}}
10 template<typename T, int N> A(const T (&)[N]); // expected-note 2{{here}} expected-note {{constructor cannot be inherited}}
11 template<typename T, int N> A(const T (&)[N], int = 0); // expected-note 2{{here}}
14 struct B : A { // expected-note 6{{candidate}}
15 using A::A; // expected-warning 4{{inheriting constructor does not inherit ellipsis}} expected-note 16{{candidate}} expected-note 3{{deleted constructor was inherited here}}
21 // expected-error@-1 {{call to implicitly-deleted default constructor of 'B'}}
22 // expected-note@-8 {{default constructor of 'B' is implicitly deleted because base class 'A' has multiple default constructors}}
25 // expected-error@-1 {{call to deleted constructor of 'B'}}
28 // expected-error@-1 {{call to deleted constructor of 'B'}}
37 // expected-error@-1 {{no matching constructor for initialization of 'B'}}
46 // expected-error@-1 {{no matching constructor}}
49 // FIXME: explain why the inheriting constructor was deleted
50 // expected-error@-2 {{call to deleted constructor of 'B'}}
54 template<typename...Ts> X(int, Ts...);