[Bug libstdc++/40160] -fno-rtti vs _GLIBCXX_DEBUG
jay dot foad at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 15 14:37:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list