Dynamic casting does not appear to be working at all

John Allen john.allen@iona.com
Tue Sep 8 02:22:00 GMT 1998


A dynamic_cast<> from a base class to a derived class produces
a compile time error.
Also calling a method via a member pointer which is typedef'd as taking
a base class reference to A,
but is in reality expecting a derived class references to B, but is
passed a derived class reference to C,
which is then dynamic_cast<B> works where it should fail.
-- -------------------------------------------------------------------


John Allen

email: john.allen@iona.com



IONA Technologies PLC

Direct dial: +353-1-6372264



The IONA Building

fax: +353-1-6625244



Shelbourne Road

WWW: http://www.iona.com



Dublin 4, Ireland

ftp: ftp.iona.com



Search
the IONA source archives (internal only)
-------------- making software work together (tm) -----------------
 
 



More information about the Gcc-bugs mailing list