[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#188943: [Bug c++/10891] code using dynamic_cast causes segfaults when -fno-rtti is used




------- Comment #8 from apl at alum dot mit dot edu  2006-07-05 19:08 -------
Created an attachment (id=11835)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11835&action=view)
protection against dynamic_cast<> with -fno-rtti is too eager

Here's a test that NEVER instantiates the template, but if compiled with

     g++ -fno-rtti

will (un)happily complain.

Ideally, unless I call the templated function derived<T>::upcast() from a
compilation unit that has -fno-rtti specified, I really don't think I should
get an error


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10891

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: