c++/10509: Problems w/ casting to base classes of classes with multiple inheritance

bangerth@dealii.org bangerth@dealii.org
Mon Apr 28 14:13:00 GMT 2003


Synopsis: Problems w/ casting to base classes of classes with multiple inheritance

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Apr 28 14:13:27 2003
State-Changed-Why:
    Not a bug. You can't cast between parallel classes using
    C-style casts. Use
        C *c=dynamic_cast<C*>(a);
    instead and it works as you expect it to do.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10509



More information about the Gcc-prs mailing list