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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2006 20:32:18 -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 #2 from pinskia at gcc dot gnu dot org 2006-08-10 20:32 -------
Why are you using dynamic_cast here?
dynamic_cast needs RTTI, otherwise you could get a crash.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.2.0 regression] |[4.2 regression]
|dynamic_cast<void*> |dynamic_cast<void*>
|disallowed too rigorously |disallowed too rigorously
|with -fno-rtti |with -fno-rtti
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28687