This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]