This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/34680] [4.3 Regression] Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2008 19:35:33 -0000
- Subject: [Bug libstdc++/34680] [4.3 Regression] Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti
- References: <bug-34680-15584@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from mmitchel at gcc dot gnu dot org 2008-01-06 19:35 -------
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?
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34680