C++ PATCH: fix PR 28687

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Aug 11 19:06:00 GMT 2006

Benjamin Smedberg <benjamin@smedbergs.us> writes:

| Previously the construct dynamic_cast<void*> worked even when RTTI was
| disabled, and was useful in Mozilla logging code. PR10891 changed this
| behavior so that dynamic_cast is forbidden unconditionally when -fno-rtti is
| used.

That assertion is untrue.  The documentation for -fno-rtti is clear
about the dynamic_cast.  If -fno-rtti, you can't meaningfully do

-- Gaby

More information about the Gcc-patches mailing list