This is the mail archive of the gcc-patches@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]

Re: C++ PATCH: fix PR 28687


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
dynamic_cast<void*>.   

-- Gaby


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