Lines Matching refs:Base
5 struct Base { }; struct
6 struct Derived : Base { }; // expected-note{{candidate constructor (the implicit copy constructor) …
11 struct Derived2 : Base { };
15 operator Base&() const;
32 operator Base() const;
51 void bind_lvalue_to_lvalue(Base b, Derived d, in bind_lvalue_to_lvalue()
52 const Base bc, const Derived dc, in bind_lvalue_to_lvalue()
56 Base &br1 = b; in bind_lvalue_to_lvalue()
57 Base &br2 = d; in bind_lvalue_to_lvalue()
60 Base &br3 = bc; // expected-error{{drops 'const' qualifier}} in bind_lvalue_to_lvalue()
61 Base &br4 = dc; // expected-error{{drops 'const' qualifier}} in bind_lvalue_to_lvalue()
62 …Base &br5 = diamond; // expected-error{{ambiguous conversion from derived class 'Diamond' to base … in bind_lvalue_to_lvalue()
67 void bind_lvalue_quals(volatile Base b, volatile Derived d, in bind_lvalue_quals()
68 volatile const Base bvc, volatile const Derived dvc, in bind_lvalue_quals()
70 volatile Base &bvr1 = b; in bind_lvalue_quals()
71 volatile Base &bvr2 = d; in bind_lvalue_quals()
72 …volatile Base &bvr3 = bvc; // expected-error{{binding value of type 'const volatile Base' to refer… in bind_lvalue_quals()
73 …volatile Base &bvr4 = dvc; // expected-error{{binding value of type 'const volatile Derived' to re… in bind_lvalue_quals()
77 const volatile Base &bcvr1 = b; in bind_lvalue_quals()
78 const volatile Base &bcvr2 = d; in bind_lvalue_quals()
82 …Base &br1 = Base(); // expected-error{{non-const lvalue reference to type 'Base' cannot bind to a … in bind_lvalue_to_rvalue()
83 …Base &br2 = Derived(); // expected-error{{non-const lvalue reference to type 'Base' cannot bind to… in bind_lvalue_to_rvalue()
84 …const volatile Base &br3 = Base(); // expected-error{{volatile lvalue reference to type 'const vol… in bind_lvalue_to_rvalue()
85 …const volatile Base &br4 = Derived(); // expected-error{{volatile lvalue reference to type 'const … in bind_lvalue_to_rvalue()
91 …Base &br1 = ur; // expected-error{{non-const lvalue reference to type 'Base' cannot bind to a valu… in bind_lvalue_to_unrelated()
92 …const volatile Base &br2 = ur; // expected-error{{volatile lvalue reference to type 'const volatil… in bind_lvalue_to_unrelated()
97 Base &nbr1 = ConvertibleToBaseRef(); in bind_lvalue_to_conv_lvalue()
98 Base &nbr2 = ConvertibleToDerivedRef(); in bind_lvalue_to_conv_lvalue()
105 …Base &br1 = both; // expected-error{{reference initialization of type 'Base &' with initializer of… in bind_lvalue_to_conv_lvalue_ambig()
119 const Base &br1 = create<Base>(); in bind_const_lvalue_to_rvalue()
120 const Base &br2 = create<Derived>(); in bind_const_lvalue_to_rvalue()
121 const Derived &dr1 = create<Base>(); // expected-error{{no viable conversion}} in bind_const_lvalue_to_rvalue()
123 const Base &br3 = create<const Base>(); in bind_const_lvalue_to_rvalue()
124 const Base &br4 = create<const Derived>(); in bind_const_lvalue_to_rvalue()
126 …const Base &br5 = create<const volatile Base>(); // expected-error{{binding value of type 'const v… in bind_const_lvalue_to_rvalue()
127 …const Base &br6 = create<const volatile Derived>(); // expected-error{{binding value of type 'cons… in bind_const_lvalue_to_rvalue()
134 const Base &br1 = ConvertibleToBase(); in bind_const_lvalue_to_class_conv_temporary()
135 const Base &br2 = ConvertibleToDerived(); in bind_const_lvalue_to_class_conv_temporary()
139 …const Base &br1 = both; // expected-error{{reference initialization of type 'const Base &' with in… in bind_lvalue_to_conv_rvalue_ambig()