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

2021-09-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38557 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Severity|normal

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

2009-03-07 Thread fang at csl dot cornell dot edu
--- 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 vis

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

2009-01-30 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-01-30 16:02 --- Confirmed. Gcc would have to keep track of the actual types of variables. W. -- bangerth at gmail dot com changed: What|Removed |Added --

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

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-17 23:25 --- I think this is basically the same as PR 12277. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38557