digitalmars.D.bugs - [Issue 2013] New: Dynamic cast is incorrect in some cases
- d-bugmail puremagic.com (19/19) Apr 19 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2013
- d-bugmail puremagic.com (6/6) Apr 19 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2013
http://d.puremagic.com/issues/show_bug.cgi?id=2013 Summary: Dynamic cast is incorrect in some cases Product: D Version: 1.028 Platform: All OS/Version: All Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: dvdfrdmn users.sf.net When a class implements an interface that has re-implemented an ancestor interface, it is possible for a dynamic cast to produce the wrong result. I have this tagged as "wrong-code", but I believe the problem is due to both InterfaceDeclaration RTTI and the implementation of phobos/internal/cast.d:_d_isbaseof2. --
Apr 19 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2013 Created an attachment (id=248) --> (http://d.puremagic.com/issues/attachment.cgi?id=248&action=view) Test Cast --
Apr 19 2008