[Bug c++/16147] dynamic_cast fails to enforce accesssibility

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 29 16:46:00 GMT 2004


------- Additional Comments From nathan at gcc dot gnu dot org  2004-08-29 16:46 -------
A need not be a public base of the most derived object.  (In this
hierarchy) it needs to be a public base of a B object, which it is.
Therefore the dynamic cast succeeds and the assert fails.
[5.2.7]/8 first bullet. 'v' is the A base, 'T' is the B base.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list