Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:Base2

727 struct Base2 : Bottom {
728 constexpr Base2(const int &r) : r(r) {}
732 struct Derived : Base, Base2 {
733 constexpr Derived() : Base(76), Base2(a) {}
742 constexpr Base base2(76);
752 static_assert(derived == base2, "");
755 constexpr Bottom &bot2 = (Base2&)derived;
759 constexpr Bottom *pb2 = (Base2*)&derived;
764 constexpr Base2 &fail = (Base2&)bot1; // expected-error {{constant expression}} expected-note {{cannot cast object of dynamic type 'const Class::Derived' to type 'Class::Base2'}}
766 constexpr Base2 &ok2 = (Base2&)bot2;
769 constexpr Base2 *pfail = (Base2*)pb1; // expected-error {{constant expression}} expected-note {{cannot cast object of dynamic type 'const Class::Derived' to type 'Class::Base2'}}
771 constexpr Base2 *pok2 = (Base2*)pb2;
774 static_assert((Base2*)(Derived*)(Base*)pb1 == pok2, "");