This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28687] [4.2 regression] dynamic_cast<void*> disallowed too rigorously with -fno-rtti
- From: "benjamin at smedbergs dot us" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2006 10:19:15 -0000
- Subject: [Bug c++/28687] [4.2 regression] dynamic_cast<void*> disallowed too rigorously with -fno-rtti
- References: <bug-28687-11332@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from benjamin at smedbergs dot us 2006-08-11 10:19 -------
The documentation is incorrect. RTTI is not required to find the most-derived
class pointer, because the vtable contains this information natively and does
not need to know anything about the type. I'm making my point from years of
working software, not some theoretical discussion.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28687