[Bug c++/28687] [4.2 regression] dynamic_cast<void*> disallowed too rigorously with -fno-rtti

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 10 20:32:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list