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: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2006 01:20:06 -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 #5 from gdr at integrable-solutions dot net 2006-08-11 01:20 -------
Subject: Re: New: [4.2.0 regression] dynamic_cast<void*> disallowed too
rigorously with -fno-rtti
"benjamin at smedbergs dot us" <gcc-bugzilla@gcc.gnu.org> writes:
| Code compiled with -fno-rtti containing a dynamic_cast<void*> used to compile
| and work properly on types with a vtable (the base class can be determined
| entirely using the vtable without any RTTI information).
RTTI is needed to have dynamic_cast works properly. Period.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28687