[Issue 2013] New: Dynamic cast is incorrect in some cases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 19 10:18:31 PDT 2008
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 at digitalmars.com
ReportedBy: dvdfrdmn at 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.
--
More information about the Digitalmars-d-bugs
mailing list