--- Comment #1 from paolo dot carlini at oracle dot com 2009-05-15 14:27
---
I get your point, indeed I implemented __GXX_RTTI and put it to good use in
has_facet / use_facet. However, here, what happens to debug mode if typeid is
not available? Is it still largely usable? If not, and I
--- 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 wh
--- Comment #3 from paolo dot carlini at oracle dot com 2009-05-15 14:48
---
Ok. In fact, being typeid used in formatter.h only (please confirm, if you
can), I suspect not using it (replacing &typeid with 0) would only lead to
worse error message, not more than that. Are you willing to
--- Comment #4 from jay dot foad at gmail dot com 2009-05-15 15:39 ---
> typeid used in formatter.h only (please confirm, if you can)
If I replace typeid(...) with 0 in formatter.h then I can at least compile the
following with -fno-rtti -D_GLIBCXX_DEBUG:
#include
#include
#include
--- Comment #5 from paolo dot carlini at oracle dot com 2009-05-15 19:34
---
Ok, thanks. I'll fix it as I said earlier today.
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added
-
--- Comment #6 from paolo at gcc dot gnu dot org 2009-05-15 22:25 ---
Subject: Bug 40160
Author: paolo
Date: Fri May 15 22:25:24 2009
New Revision: 147599
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147599
Log:
2009-05-15 Paolo Carlini
PR libstdc++/40160
*
--- Comment #7 from paolo dot carlini at oracle dot com 2009-05-15 22:27
---
Fixed.
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added
Statu
--- Comment #8 from jay dot foad at gmail dot com 2009-05-18 09:46 ---
Thanks Paolo!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160