[Bug c++/10990] [3.3/3.4 regression] Cannot convert with dynamic_cast<> to a private base class from within a member function
giovannibajo@libero.it
gcc-bugzilla@gcc.gnu.org
Tue May 27 11:22:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10990
giovannibajo@libero.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2003-05-27 09:33:50
date| |
Summary|get error when I use |[3.3/3.4 regression] Cannot
|dynamic_cast on protected |convert with dynamic_cast<>
|base class |to a private base class from
| |within a member function
------- Additional Comments From giovannibajo@libero.it 2003-05-27 09:33 -------
Agreed. The standard says that the base class we're casting to should be "an
accessible ambigous base class". In the code snippet JunkBase is obviously
accessible (as base class) from within a member function, so the conversion
should succeed. This is a regression wrt 2.95.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list