Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jay dot foad at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160
--- 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
--- 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
#incl
--- 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
--- Comment #3 from jay dot foad at gmail dot com 2010-06-08 14:24 ---
I've just seen this too:
$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
[...]
$ cat a.h
void a(void);
$ cat b.h
#include "a.h"
$ cat b.c
#include "b.h"
void b(void) {}
$ gcc -c -g3