[Bug c++/28687] [4.2 regression] dynamic_cast<void*> disallowed too rigorously with -fno-rtti
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Fri Aug 11 01:20:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list