This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/40160] -fno-rtti vs _GLIBCXX_DEBUG
- From: "jay dot foad at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2009 14:37:33 -0000
- Subject: [Bug libstdc++/40160] -fno-rtti vs _GLIBCXX_DEBUG
- References: <bug-40160-16917@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jay dot foad at gmail dot com 2009-05-15 14:37 -------
I'm using debug mode to catch problems like v[i] where i >= v.size(). I think
it would be very nice if this worked with -fno-rtti. I don't see why RTTI
should be required to make this work. But then, I have no idea why typeid is
being used in debug/formatter.h in the first place.
As a workaround, I am removing -fno-rtti from the command line when I build my
project with libstdc++ debug mode enabled, but it is annoying to have to do
this for a project that doesn't use RTTI.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160