Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:dynamic_cast

25   (void)dynamic_cast<A>((A*)0); // expected-error {{'A' is not a reference or pointer}}
27 (void)dynamic_cast<A*>(0); // expected-error {{'int' is not a pointer}}
29 (void)dynamic_cast<int*>((A*)0); // expected-error {{'int' is not a class}}
31 (void)dynamic_cast<A*>((int*)0); // expected-error {{'int' is not a class}}
33 (void)dynamic_cast<int&>(*((A*)0)); // expected-error {{'int' is not a class}}
35 (void)dynamic_cast<A&>(*((int*)0)); // expected-error {{'int' is not a class}}
37 (void)dynamic_cast<Incomplete*>((A*)0); // expected-error {{'Incomplete' is an incomplete type}}
39 (void)dynamic_cast<A*>((Incomplete*)0); // expected-error {{'Incomplete' is an incomplete type}}
41 (void)dynamic_cast<A&>(A()); // expected-error {{dynamic_cast from rvalue to reference type 'A &'}}
46 (void)dynamic_cast<A*>((A*)0);
47 (void)dynamic_cast<A&>(*((A*)0));
52 (void)dynamic_cast<A*>((B*)0);
53 (void)dynamic_cast<A&>(*((B*)0));
54 (void)dynamic_cast<A*>((C*)0);
55 (void)dynamic_cast<A&>(*((C*)0));
58 //(void)dynamic_cast<A*>((D*)0);
59 //(void)dynamic_cast<A&>(*((D*)0));
62 (void)dynamic_cast<A*>((F*)0); // expected-error {{ambiguous conversion from derived class 'F' to base class 'A':\n struct F -> struct B -> struct A\n struct F -> struct E -> struct A}}
63 (void)dynamic_cast<A&>(*((F*)0)); // expected-error {{ambiguous conversion from derived class 'F' to base class 'A':\n struct F -> struct B -> struct A\n struct F -> struct E -> struct A}}
68 (void)dynamic_cast<A*>((Poly*)0);
69 (void)dynamic_cast<A&>(*((Poly*)0));
70 (void)dynamic_cast<A*>((PolyDerived*)0);
71 (void)dynamic_cast<A&>(*((PolyDerived*)0));
74 (void)dynamic_cast<Poly*>((A*)0); // expected-error {{'A' is not polymorphic}}
75 (void)dynamic_cast<PolyDerived&>(*((A*)0)); // expected-error {{'A' is not polymorphic}}