RTTI bug
Alexandre Oliva
oliva@dcc.unicamp.br
Tue Dec 9 20:59:00 GMT 1997
Philipp Tomsich writes:
> class A {};
> class B: public A {};
> B* bp = dynamic_cast<B*>(ap);
Note that A is not a polymorphic type, so the error message is correct
([expr.dynamic.cast]/6 in Nov'97 WP). A polymorphic type is one that
contains at least one virtual member function.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list