This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/40160] -fno-rtti vs _GLIBCXX_DEBUG



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]