blob: a8bd78e0f39d3a87d1e8c66b6c8abba00b101999 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fno-rtti" }
// PR C++/10891
struct A {
virtual ~A() { }
};
struct B : A {
};
A* f();
int main()
{
B* b = dynamic_cast<B*>(f()); // { dg-error "11:.dynamic_cast. not permitted" }
}