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


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