This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16848] code in /ext/demangle.h appears broken
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2004 21:02:26 -0000
- Subject: [Bug libstdc++/16848] code in /ext/demangle.h appears broken
- References: <20040801025152.16848.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2004-08-01 21:02 -------
Well I appear to have been misled by:
// Public interface
template<typename Tp, typename Allocator>
struct demangle
According to *former* maintainer a mere user is not supposed to be using this
code at all - it's for people who are writing their own demangler. In that case why aren't they "protected"?
<begin flame>
Begging your pardon, but how about putting something in the library that let's me print what my bloody type is in text I can read? <cxxabi>::demangle dies on built-in types (cf. bug #16845), and ext/demangle.h is broken and "you shouldn't really use those exported functions."
<end flame>
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16848