1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
3 // Straight from the standard
5 B1(int); // expected-note {{previous constructor}} expected-note {{conflicting constructor}}
8 B2(int); // expected-note {{conflicting constructor}}
11 using B1::B1; // expected-note {{inherited here}}
12 using B2::B2; // expected-error {{already inherited constructor with the same signature}}
20 template<typename T> struct B3 {
21 B3(T); // expected-note {{previous constructor}}
23 template<typename T> struct B4 : B3<T>, B1 {
25 using B3<T>::B3; // expected-note {{inherited here}}
26 using B1::B1; // expected-error {{already inherited}}
29 B4<int> b4i; // expected-note {{here}}
32 template<typename T> B5(T); // expected-note {{previous constructor}}
35 template<typename T> B6(T); // expected-note {{conflicting constructor}}
38 template<typename T, int> B7(T);
40 struct D56 : B5, B6, B7 {
41 using B5::B5; // expected-note {{inherited here}}
42 using B6::B6; // expected-error {{already inherited}}
44 struct D57 : B5, B6, B7 {
46 using B7::B7; // ok, not the same signature