------- Comment #6 from bkoz at gcc dot gnu dot org 2008-01-05 05:21 -------
Agreed. We should remove the offending patch set from 4.2. It's been too troublesome and we can't do this kind of compile-behavior change on a minor update to a stable release series. Oh well. Probably what needs to happen on mainline is -fexceptions and __EXCEPTIONS should be used to model something like -frtti and __RTTI Then macro solutions are possible in the library. Or, we could change mainline cc1plus to silently convert dynamic_cast to static_cast when -fno-rtti. I would actually prefer this solution. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34680