[Bug c++/38557] dynamic_cast should give a warning/error for non related classes

fang at csl dot cornell dot edu gcc-bugzilla@gcc.gnu.org
Sat Mar 7 20:02:00 GMT 2009



------- Comment #3 from fang at csl dot cornell dot edu  2009-03-07 20:02 -------
If class C inherits from A and B, would we conservatively consider possible
cross-casts from A* to B* through C*, when trying to statically analyze the
dynamic_cast?  (And would it matter if class C wasn't even visible to this
translation unit?)


-- 

fang at csl dot cornell dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fang at csl dot cornell dot
                   |                            |edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38557



More information about the Gcc-bugs mailing list