This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: typeinfo *^%*&^%*&%
- To: chamont at polhp3 dot in2p3 dot fr, oliva at dcc dot unicamp dot br
- Subject: Re: typeinfo *^%*&^%*&%
- From: mrs at wrs dot com (Mike Stump)
- Date: Mon, 15 Jun 1998 17:10:23 -0700
- Cc: egcs-bugs at cygnus dot com
> To: David Chamont <chamont@polhp3.in2p3.fr>
> Cc: egcs-bugs@cygnus.com
> From: Alexandre Oliva <oliva@dcc.unicamp.br>
> Date: 11 Jun 1998 21:28:51 -0300
> The result of typeinfo::name() is implementation-defined, don't expect
> to get the same result when you use different compilers, or different
> versions of the same compiler. G++ and egcs have chosen to return the
> string produced by its own symbol name mangling mechanism. `i' refers
> to the integer type, and `1A' refer to a class name of length `1',
> namely, `A'.
Long term, we may want to return the demangled version of the type
name for name(). We choose what we do now, because it was handle,
easy to code, had the proper uniqueness guarantees and completely
reliable and well understood.