------- Comment #14 from pcarlini at suse dot de 2008-01-06 20:05 ------- (In reply to comment #13) > I'm not keen on silently changing dynamic_cast to static_cast. But, with > -fno-rtti, making dynamic_cast<void*> and static casts work seems OK. Does > that not work now?
Yes, I checked, and that works. > And, certainly, adding preprocessor macros (__GNU_CXX_EXCEPTIONS, > __GNU_CXX_RTTI) to indicate whether or not exceptions and RTTI are turned on > or > not seems like a good idea. Great. We can use that for a library-only solution. Today I posted a patch, we already have __EXCEPTIONS, and, for the new one, I choosen __GXX_RTTI consistently with other existing C++ only predefine macros, if you would rather prefer __GNU_CXX_RTTI, just let me know... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34680
