Home | History | Annotate | Download | only in dcl.init.ref

Lines Matching defs:Derived

6 struct Derived : Base { }; // expected-note{{candidate constructor (the implicit copy constructor) not viable}}
12 struct Diamond : Derived, Derived2 { };
19 operator Derived&() const;
23 operator Derived&(); // expected-note{{candidate function}}
36 operator Derived() const;
40 operator Derived(); // expected-note{{candidate function}}
51 void bind_lvalue_to_lvalue(Base b, Derived d,
52 const Base bc, const Derived dc,
58 Derived &dr1 = d;
59 Derived &dr2 = b; // expected-error{{non-const lvalue reference to type 'Derived' cannot bind to a value of unrelated type 'Base'}}
62 Base &br5 = diamond; // expected-error{{ambiguous conversion from derived class 'Diamond' to base class 'Base':}}
67 void bind_lvalue_quals(volatile Base b, volatile Derived d,
68 volatile const Base bvc, volatile const Derived dvc,
73 volatile Base &bvr4 = dvc; // expected-error{{binding value of type 'const volatile Derived' to reference to type 'volatile Base' drops 'const' qualifier}}
83 Base &br2 = Derived(); // expected-error{{non-const lvalue reference to type 'Base' cannot bind to a temporary of type 'Derived'}}
85 const volatile Base &br4 = Derived(); // expected-error{{volatile lvalue reference to type 'const volatile Base' cannot bind to a temporary of type 'Derived'}}
99 Derived &ndr1 = ConvertibleToDerivedRef();
104 Derived &dr1 = both;
120 const Base &br2 = create<Derived>();
121 const Derived &dr1 = create<Base>(); // expected-error{{no viable conversion}}
124 const Base &br4 = create<const Derived>();
127 const Base &br6 = create<const volatile Derived>(); // expected-error{{binding value of type 'const volatile Derived' to reference to type 'const Base' drops 'volatile' qualifier}}
138 const Derived &dr1 = both;