Lines Matching refs:B
67 struct B { struct
68 B(const A&);
69 B(const B&);
71 const volatile B b = a;
81 class B : virtual private A {}; // expected-note 2 {{declared private here}} class
82 …class C : public B {} c; // expected-error 2 {{inherited virtual base class 'dr7::A' has private d…
85 class VeryDerivedC : public B, virtual public A {} vdc;
116 struct B { struct
121 struct N : protected B { // expected-note 2{{protected}}
130 struct B { struct in dr10::A
131 A::B *p; argument
141 template<typename T> struct B : T { struct
207 class B : A {}; // expected-note 4{{here}} class
208 class C : B {
222 struct B : A {} b; struct
235 struct B : protected A { // expected-note {{here}} struct
237 struct C : B {} c;
238 struct D : B {
259 …template<typename T = int> friend struct B; // expected-error {{default template argument not perm…
299 struct B { struct
300 B(); // expected-note {{candidate}}
301 …B(const B &, B = B()); // expected-error {{no matching constructor}} expected-note {{candidate}} e…
405 struct B : A { struct
420 struct B : A, virtual V { struct
428 …struct C : A, B, virtual V {} c; // expected-warning {{direct base 'dr39::example2::A' is inaccess…
437 struct B : virtual A { using A::f; }; struct
439 struct D : B, C {} d;
445 struct B : A {}; struct
447 struct D : B, C { int f() { return n; } }; // expected-error {{found in multiple base-class}} in f()
453 struct B : A {}; struct
455 struct D : B, C {};
471 struct B : A { static const int k = A::k; }; argument
485 class B {}; class in dr45::A
486 class C : B {};
492 template<typename> struct A { template<typename> struct B {}; }; struct
493 template template struct A<int>::B<int>; // expected-error {{expected unqualified-id}}
561 struct B : A {}; struct
564 operator B&();
571 struct B : private A {} b; // expected-note 2{{private}} struct
585 struct B : private A, virtual V { int b; } b; // expected-note 6{{private here}} argument
589 int A::*smab = static_cast<int A::*>(&B::b); // expected-error {{private base}}
590 B &sba = static_cast<B&>(a); // expected-error {{private base}}
591 B *spba = static_cast<B*>(&a); // expected-error {{private base}}
592 int B::*smba = static_cast<int B::*>(&A::a); // expected-error {{private base}}
596 int V::*smvb = static_cast<int V::*>(&B::b); // expected-error {{virtual base}}
597 B &sbv = static_cast<B&>(v); // expected-error {{virtual base}}
598 B *spbv = static_cast<B*>(&v); // expected-error {{virtual base}}
599 int B::*smbv = static_cast<int B::*>(&V::v); // expected-error {{virtual base}}
603 int A::*cmab = (int A::*)(&B::b);
604 B &cba = (B&)(a);
605 B *cpba = (B*)(&a);
606 int B::*cmba = (int B::*)(&A::a);
610 int V::*cmvb = (int V::*)(&B::b); // expected-error {{virtual base}}
611 B &cbv = (B&)(v); // expected-error {{virtual base}}
612 B *cpbv = (B*)(&v); // expected-error {{virtual base}}
613 int B::*cmbv = (int B::*)(&V::v); // expected-error {{virtual base}}
626 struct B { struct
647 struct B : A {}; // expected-note 2{{volatile qualifier}} struct
659 B b1 = convert_to<B>();
660 B b2 = convert_to<B&>();
661 B b3 = convert_to<const B>();
662 B b4 = convert_to<const volatile B>(); // expected-error {{no viable}}
663 B b5 = convert_to<const volatile B&>(); // expected-error {{no viable}}
859 struct B {}; struct
860 friend struct B;
876 struct B { struct
877 static int B; // expected-error {{same name as its class}} argument
900 struct B;
901 struct A { operator B() const; };
903 struct B { struct
904 B(B&); // expected-note {{candidate}}
905 B(C);
911 B b = a; // expected-error {{no viable}}
916 struct B;
917 struct B {}; // expected-note{{previous declaration is here}} struct
918 struct B; // expected-error{{class member cannot be redeclared}}
937 struct B {}; // expected-note{{previous declaration is here}} struct
938 struct B; // expected-error{{class member cannot be redeclared}}
967 struct B : A { struct
972 struct E : B {};
973 struct F : B::C {};
977 dr90_f(B()); in test()
978 dr90_f(B::C()); // expected-error {{undeclared identifier}} in test()
979 dr90_f(B::D()); // expected-error {{undeclared identifier}} in test()
984 dr90_g(B()); in test()
985 dr90_g(B::C()); in test()
986 dr90_g(B::D()); in test()
1026 struct B;
1030 friend struct B;
1036 struct B { void f() { N::C::f(); } }; // expected-error {{private}} in f() struct
1045 template<template<typename> class X> struct B {}; struct
1055 B<A::template S> b; in test()